# Issue #1183

# Run get go
exec cue get go --local .
cmp a_go_gen.cue a_go_gen.cue.golden

-- a.go --
package a

type C int

// define some typed constants
const (
	A C = iota
	b
	_
	c
)

// define some untyped constants
const (
	D = iota
	e
	_
	f
)
-- go.mod --
module mod.test/a

go 1.16
-- a_go_gen.cue.golden --
// Code generated by cue get go. DO NOT EDIT.

//cue:generate cue get go mod.test/a

package a

#C: int // #enumC

#enumC:
	#A |
	_#b |
	_#c

#values_C: {
	A: #A
	b: _#b
	c: _#c
}

#A:  #C & 0
_#b: #C & 1
_#c: #C & 3

#D:  0
_#e: 1
_#f: 3
