-
Notifications
You must be signed in to change notification settings - Fork 0
[feature/47] :: applied the camelcase naming convention #48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
wellfernandes
merged 30 commits into
develop
from
feature/47-apply-the-camel-case-naming-convention
Jul 27, 2025
Merged
Changes from 11 commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
fe3fdcb
refactor: standardize error constants to follow Go conventions
wellfernandes 28780c3
feat: added new error constant
wellfernandes bc054e8
refactor: replaced fatal error with a custom error
wellfernandes b6b4366
refactor: code formatting
wellfernandes 50e01c2
refactor: improved func return readability
wellfernandes cd6006d
remove: removed files after refactoring
wellfernandes 63e5d2c
feat: added cli constants
wellfernandes 96010dd
feat: added utils
wellfernandes d59ee3a
feat: added main for running examples
wellfernandes 45f9f3f
docs: updated readme
wellfernandes 7c28184
docs: updated readme (pt)
wellfernandes a75ce35
fix: fixed inconsistent usage of error variable
wellfernandes 536ea47
remove: removed after package reorganization
wellfernandes 3bae813
refactor: simplified func return
wellfernandes 51f5c02
refactor: standardized custom error and return
wellfernandes e74f478
refactor: changed return of the gender entity
wellfernandes e253084
refactor: reorganized examples of usage
wellfernandes bbd88b6
feat: added simplified usage example
wellfernandes 2cc3d8a
feat: added simplified usage option
wellfernandes 81f7ce6
docs: updated readme
wellfernandes a485e83
docs: updated readme (pt)
wellfernandes 0abebcd
refactor: added error handling
wellfernandes 7426a12
fix: fixed error return when creating a mocker
wellfernandes 77419ff
docs: updated readme with fixed code example
wellfernandes cee1791
docs: updated readme (pt) with fixed code example
wellfernandes 8469a85
refactor: removed unnecessary field
wellfernandes 1cb26d4
docs: replaced tabs with spaces in code blocks
wellfernandes c4e2ef8
refactor: fixed import after restructuring
wellfernandes d661acc
fix: added internal directory and reorganized files
wellfernandes d6bd9cc
remove: files removed after fix
wellfernandes File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,10 +1,12 @@ | ||
| package person | ||
|
|
||
| import "errors" | ||
|
|
||
| // Error constants for person-related data generation failures. | ||
| // These errors represent specific failure scenarios and should be wrapped with additional | ||
| // context when returned. | ||
| const ( | ||
| ERROR_GENERATING_PERSON = "error generating person" | ||
| ERROR_NO_FIRST_NAMES = "no data available for first names" | ||
| ERROR_NO_LAST_NAMES = "no data available for last names" | ||
| var ( | ||
| ErrGeneratingPerson = errors.New("error generating person") | ||
| ErrNoFirstNames = errors.New("no data available for first names") | ||
| ErrNoLastNames = errors.New("no data available for last names") | ||
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,11 @@ | ||
| package phone | ||
|
|
||
| import "errors" | ||
|
|
||
| // Error constants used for phone number generation failures. | ||
| // These errors represent specific failure scenarios and should be wrapped with additional | ||
| // context when returned. | ||
| const ( | ||
| ERROR_GENERATING_PHONE = "error generating phone" | ||
| ERROR_NO_AREA_CODES = "no data available for area codes" | ||
| var ( | ||
| ErrGeneratingPhone = errors.New("error generating phone") | ||
| ErrNoAreaCodes = errors.New("no data available for area codes") | ||
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As coisas dentro de cmd são sempre package main e não pode ser importadas em outros lugares
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perfeito! Criei um diretório internal pra isso!