Last active
December 30, 2020 05:20
-
-
Save ridhoperdana/fba9ddaad5ff3e7138db7ef4221e97d8 to your computer and use it in GitHub Desktop.
example of write everthing twice
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() { | |
| juniorEngineers := []string{"John", "Doe"} | |
| for index, engineer := range juniorEngineers { | |
| fmt.Printf("Some string at index %v with value %v", index, engineer) | |
| } | |
| seniorEngineers := []string{"Budi", "Agus"} | |
| for index, engineer := range seniorEngineers { | |
| fmt.Printf("Some string at index %index with value %engineer", index, engineer) | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment