Skip to content

Instantly share code, notes, and snippets.

@takekazuomi
Created May 31, 2014 02:50
Show Gist options
  • Save takekazuomi/3bbded975b444e6cc7d9 to your computer and use it in GitHub Desktop.
Save takekazuomi/3bbded975b444e6cc7d9 to your computer and use it in GitHub Desktop.
package main
import {
"fmt",
}
func main() {
m := map[string]int {
"hoge":100,
"fuga":200,
}
for k,v := range m {
fmt.Printf(k,v)
}
}
@takekazuomi
Copy link
Author

下記のようなエラーになった

> go run .\hoge.go

hoge.go:3:8: expected 'STRING', found '{'
hoge.go:4:2: expected ';', found 'STRING' "fmt"
PS C:\Users\Omi\Documents\Go>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment