Skip to content

Instantly share code, notes, and snippets.

@ridhoperdana
Created December 30, 2020 04:23
Show Gist options
  • Select an option

  • Save ridhoperdana/95efdca9488869e168ba67502aa8d360 to your computer and use it in GitHub Desktop.

Select an option

Save ridhoperdana/95efdca9488869e168ba67502aa8d360 to your computer and use it in GitHub Desktop.
example of using random variable's name
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