Slice Instance

Run Settings
LanguageGo
Language Version
Run Command
package main import ( "fmt" ) func main() { array1 := []int{} var array2 []int = []int{} array3 := make([]int, 0) if array1 == nil { fmt.Println("array1 nil!") } if array2 == nil { fmt.Println("array2 nil!") } if array3 == nil { fmt.Println("array3 nil!") } // =============== result ============ // array2 nil! }
Editor Settings
Theme
Key bindings
Full width
Lines