Last active
October 26, 2018 20:54
-
-
Save cn007b/9547d05a272d54e0a17f3e6fcb51c750 to your computer and use it in GitHub Desktop.
GO ValueObject - example 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
func CreateNewUser() { | |
name := ... | |
email := ... | |
// ... | |
db.SaveUser(name, email) | |
mailer.SendEmail(name, email) | |
search.AddUser(name, email) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment