Show Menu
Cheatography

All in Go Cheat Sheet (DRAFT) by

Golang Language Cheat Sheet.

This is a draft cheat sheet. It is a work in progress and is not finished yet.

type

type Person struct{}
定义结构体
type Personer interf­ace{}
定义接口
type IntAlias = int
定义类型别名
type NewInt = int
定义新类型
type NewFunc func(name string) string
定义函数类型

test

11
22