Created
July 29, 2017 08:13
-
-
Save bam6o0/14ac47d5fe8c09e5e1cc866027dbde24 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" | |
func main() { | |
//int型からmyInteger型を宣言 | |
type myInteger int | |
//myInteger型の変数を作成 | |
var i myInteger = 123 | |
i += 1 | |
fmt.Println(i) | |
//新しい構造体を作成 | |
type myStruct struct { | |
a int | |
b int | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment