Go语言学习1

1、go标示符:非空字母或者数字串,第一个必须是字母,不能为关键字,可以是下划线。

2、go关键字:

break,default,func,interface,select,

case,defer,go,map,struct,

chan,else,goto,package,switch,

const,fallthrough,if,range,type,

contiue,for,import,return,var,

3、go标示符:

append,copy,int8,nil,ture,

bool,delete,int16,Panic,uint,

byte,error,int32,print,uint8,

cap,false,int64,println,uint16,

close,float32,iota,real,uint32,

complex,float64,len,recover,uint64,

complex64,imag,make,rune,uintptr,

complex128,int,new,string,

4、常量与变量

使用const进行多个常量的声明。

5、iota表示预定义的标示符为连续的无类型的证书常量。

6、类型转换使用:type(value)进行转换,例如:int(a);

7、complex64,实部和虚部都是float32,complex128的实部和虚部是float64,math包包含众多的书序函数。

8、

原文地址:https://www.cnblogs.com/diaosizhang/p/3771590.html