Last active
October 26, 2018 22:24
-
-
Save cn007b/3943396c88e58a8b0ecab0a3b7b9384c to your computer and use it in GitHub Desktop.
GO ValueObject - vo part 1
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
package CreateUserVO | |
import "errors" | |
type Instance struct { | |
// errors contains all validation errors. | |
errors map[string]string | |
name string // intentionally non-exported | |
email string // intentionally non-exported | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment