Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Go でマップ内のエントリの量を取得しようとしています。より良い方法はありますか:
count := 0 for key := range mymap { count++ }
ありがとう!
len 関数はこれに適しています。
http://golang.org/ref/spec#Length_and_capacity