Skip to content

Instantly share code, notes, and snippets.

@bam6o0
Created July 29, 2017 08:13
Show Gist options
  • Save bam6o0/14ac47d5fe8c09e5e1cc866027dbde24 to your computer and use it in GitHub Desktop.
Save bam6o0/14ac47d5fe8c09e5e1cc866027dbde24 to your computer and use it in GitHub Desktop.
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