Documentation ¶
Index ¶
- func ArrayGrammer()
- func ChannelDemo()
- func ChannelWithBuffer()
- func ClassDemo()
- func ConcurrentDemo()
- func DeferDemo()
- func FakeMain()
- func InterfaceDemo()
- func MapDemo()
- func Pointer()
- func RangeDemo()
- func SliceDemo()
- func Struct()
- func StudentClass()
- func Study()
- func TypeTranslate()
- type Animal
- type Chevrolet
- type Ford
- type Sale
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArrayGrammer ¶
func ArrayGrammer()
* go的数组的元素必须为同一种数据类型,声明时必须指定类型 * go的数组长度是固定的,声明时指定长度或者根据赋值时个数由go来自动推断(必须是声明时赋值才可以推断)
func ChannelWithBuffer ¶
func ChannelWithBuffer()
func ConcurrentDemo ¶
func ConcurrentDemo()
func InterfaceDemo ¶
func InterfaceDemo()
func Pointer ¶
func Pointer()
* 指针的定义:一个指针变量指向了一个值的内存地址。 * 在变量的类型前面使用 * 符号以声明此变量为指针变量 * 指针变量储存的是值的内存地址,在变量前加上 * 符号以访问这个指针变量的值(获取内存地址上的内容)
func TypeTranslate ¶
func TypeTranslate()
Types ¶
Click to show internal directories.
Click to hide internal directories.