1 Star 0 Fork 0

Laomo. / delve

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
consts.go 488 Bytes
一键复制 编辑 原始数据 按行查看 历史
package main
import (
"dir0/pkg"
"fmt"
"runtime"
)
type ConstType uint8
const (
constZero ConstType = iota
constOne
constTwo
constThree
)
type BitFieldType uint8
const (
bitZero BitFieldType = 1 << iota
bitOne
bitTwo
bitThree
bitFour
)
func main() {
a := constTwo
b := constThree
c := bitZero | bitOne
d := BitFieldType(33)
e := ConstType(10)
f := BitFieldType(0)
runtime.Breakpoint()
pkg.SomeVar.AnotherMethod(2)
fmt.Println(a, b, c, d, e, f, pkg.SomeConst)
}
1
https://gitee.com/LaomoBK/delve.git
git@gitee.com:LaomoBK/delve.git
LaomoBK
delve
delve
v1.1.0

搜索帮助