Skip to content

Instantly share code, notes, and snippets.

@cn007b
Last active October 26, 2018 22:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cn007b/3943396c88e58a8b0ecab0a3b7b9384c to your computer and use it in GitHub Desktop.
Save cn007b/3943396c88e58a8b0ecab0a3b7b9384c to your computer and use it in GitHub Desktop.
GO ValueObject - vo part 1
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