Last active
February 20, 2023 09:05
-
-
Save marvinhosea/a4e608f0518ee3e83bc606fd298562bd to your computer and use it in GitHub Desktop.
Main.go
This file contains hidden or 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 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