Skip to content

Instantly share code, notes, and snippets.

@marvinhosea
Last active February 20, 2023 09:05
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 marvinhosea/a4e608f0518ee3e83bc606fd298562bd to your computer and use it in GitHub Desktop.
Save marvinhosea/a4e608f0518ee3e83bc606fd298562bd to your computer and use it in GitHub Desktop.
Main.go
func main() {
password := ""
response := make(map[string]any)
var passwordErrs []string
err := passwordValidator(password)
if err != nil {
// code validation goes here
}
jsonResponse, err := json.Marshal(&response)
if err != nil {
log.Fatal(err)
}
log.Println(string(jsonResponse))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment