【文件属性】:
文件名称:go-cheat-sheet-golang-cheatsheet:Go作弊表Golang作弊表
文件大小:7KB
文件格式:ZIP
更新时间:2021-04-02 17:46:47
Go
去备忘单
基本类型
var i int
var f float64
var b bool
var s string
bool
string
int int8 int16 int32 int64
uint uint8 uint16 uint32 uint64 uintptr
byte // alias for uint8
rune // alias for int32
// represents a Unicode code point
float32 float64
complex64 complex128
基本转换
i := 42
f := float64(i)
u := uint(f)
基本语法
你好世界
文件hello.go :
package main
import "fmt"
func main () {
fmt . Println ( "
【文件预览】:
go-cheat-sheet-golang-cheatsheet-main
----test.go(800B)
----README.md(16KB)