Last active
December 30, 2020 05:21
-
-
Save ridhoperdana/04a3a79e5f5cf536f28fbe03305f86d8 to your computer and use it in GitHub Desktop.
example of bad function name using noun
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
| package main | |
| import ( | |
| "fmt" | |
| ) | |
| func names() { | |
| names := []string{"John", "Doe"} | |
| for index, name := range names { | |
| fmt.Printf("Some string at index %v with value %v", index, name) | |
| } | |
| } | |
| func main() { | |
| names() | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment