
The repository is being switched from the personal account github.com/derekparker/delve to the organization account github.com/go-delve/delve. This patch updates imports and docs, while preserving things which should not be changed such as my name in the CHANGELOG and in TODO comments.
39 lines
533 B
Go
39 lines
533 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"github.com/go-delve/delve/_fixtures/internal/dir0/pkg"
|
|
"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)
|
|
}
|