-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from underbek/feature/config
Yaml config
- Loading branch information
Showing
13 changed files
with
616 additions
and
183 deletions.
There are no files selected for viewing
This file contains 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 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 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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# array of conversion functions | ||
conversion-functions: | ||
## source path or full package name | ||
- source: github.com/underbek/datamapper/_test_data/mapper/convertors | ||
## optional package alias | ||
alias: cf | ||
- source: github.com/underbek/datamapper/_test_data/mapper/other_convertors | ||
|
||
# array of conversion mapping | ||
options: | ||
## From model | ||
- from: | ||
## name of model (can use with pointer) | ||
name: "*User" | ||
## mapping tag (optional|default = map) | ||
tag : map | ||
## source path or full package name | ||
source: github.com/underbek/datamapper/_test_data/mapper/domain | ||
## optional package alias | ||
alias: domain | ||
## From model like a from model | ||
to: | ||
name: "User" | ||
source: github.com/underbek/datamapper/_test_data/mapper/transport | ||
## Destination file path | ||
destination: _test_data/local_test/domain_to_dto_user_converter.go | ||
## If you need to crate inverse conversions | ||
inverse: true | ||
|
||
- from: | ||
name: "User" | ||
source: github.com/underbek/datamapper/_test_data/mapper/broken | ||
alias: bk | ||
tag: map | ||
to: | ||
name: "*User" | ||
source: github.com/underbek/datamapper/_test_data/mapper/domain | ||
alias: dm | ||
tag: map | ||
destination: _test_data/local_test/broken_to_domain_user_converter.go | ||
inverse: true |
This file contains 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
43 changes: 43 additions & 0 deletions
43
_test_data/mapper/expected/with_generated/user_converter.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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 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 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 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.