Skip to content
This repository has been archived by the owner on Aug 1, 2020. It is now read-only.

Latest commit

 

History

History
27 lines (24 loc) · 761 Bytes

golang.md

File metadata and controls

27 lines (24 loc) · 761 Bytes
  • 输出什么
    func main() {
        x := [3]int{1, 2, 3}
    
        func(arr [3]int) {
            arr[0] = 7
            fmt.Println(arr)
        }(x)
    
        fmt.Println(x)
    }
    
  • 输出什么
    func main() {
        m := map[string]string{
            "1": "1",
            "2": "2",
            "3": "3",
        }
    
        for k, v := range m {
            println(k, v)
        }
    }