Created
July 29, 2017 11:35
-
-
Save bam6o0/ca8ac11608d792ff452183cd2e632d1f to your computer and use it in GitHub Desktop.
This file contains 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" | |
//先頭大文字であるためエクスポートされる | |
const Export = true | |
//先頭小文字であるためエクスポートされない | |
const export = false | |
func main() { | |
//先頭大文字だがローカル変数であるためエクスポートされない | |
const Z = 123 | |
fmt.Println(Export, export, Z) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment