for i := 0; i < 3; i++ { fmt.Println(i ) } for i, v := range []int{1, 2, 3} { fmt.Println(i, v) // ΠϯσοΫε൪߸ } for k, v := range map[int]string{1: "͋", 2: "͍", 3: "͏"} { fmt.Println(k, v) // Ωʔ } } ੲͳ͕ΒͷΠςϨʔλʔͷΠϯΫϦϝϯτͷ΄͔ɺ range Λͬͨ foreach తͳίʔυهड़Ͱ͖Δ
είʔϓ͕େ͖͍ؔҙຯ͕ेʹΘΔ໊લʹ w ྫhttp.ListenAndServe() runtime.SetMutexProfileFraction() w ୯ޠͷ࿈݁Ωϟϝϧέʔεɺͨͩ͠಄ࣈޠ಄จࣈޠৗʹಉ ͡έʔε શͯେจࣈ͔શͯখจࣈ w ྫtemplate.HTMLEscape() http.ParseHTTPVersion()
map struct chan else goto package switch const fallthrough if range type continue for import return var ༧ޠͱɺߏจతʹڐ͞Ε͍ͯΔॴͰ͚ͩ͑Δ༻ޠͷ͜ͱ ͜ΕΒͷ༧ޠม໊໊ؔʹ͏͜ͱͰ͖ͳ͍
{ const n = 127 // ͜͜Λ 128 ʹ͢Δͱ࣍ͷߦίϯύΠϧΤϥʔ var i8 int8 = n // -128ʙ12 7 var i16 int16 = n // -32768ʙ3276 7 var i32 int32 = n // -2147483648ʙ214748364 7 var i64 int64 = n // -9223372036854775808ʙ922337203685477580 7 var ui8 uint8 = n // 0ʙ25 5 var ui16 uint16 = n // 0ʙ6553 5 var ui32 uint32 = n // 0ʙ429496729 5 var ui64 uint64 = n // 0ʙ1844674407370955161 5 fmt.Println(i8, i16, i32, i64, ui8, ui16, ui32, ui64 ) } ఆͦͷ͕දݱՄೳͳܕͰ͋Ε༷ʑͳܕʹೖͰ͖Δ