Created
January 13, 2018 22:34
-
-
Save sunho/b29aa062f190d125f69f7b42c5df5e66 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import "fmt" | |
| func main() { | |
| var s []int | |
| fmt.Println(s, len(s), cap(s)) | |
| if s == nil { | |
| fmt.Println("nil!") | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment