Last active
August 29, 2015 14:27
-
-
Save 178inaba/3f1471c26c3aee0b2dfd to your computer and use it in GitHub Desktop.
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() { | |
s := []string{"go", "lang", "is", "super", "lang", "!"} | |
for k := range s { | |
fmt.Print(s[k] + " ") | |
if k == 1 { | |
s[k] = "!!!!" | |
} | |
} | |
fmt.Print("\n") | |
for _, v := range s { | |
fmt.Print(v + " ") | |
} | |
} |
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
go lang is super lang ! | |
go !!!! is super lang ! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment