Created
December 30, 2020 04:23
-
-
Save ridhoperdana/95efdca9488869e168ba67502aa8d360 to your computer and use it in GitHub Desktop.
example of using random variable's name
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 main() { | |
| l := []string{"John", "Doe"} | |
| for i, v := range l { | |
| fmt.Printf("Some string at index %v with value %v", i, v) | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment