File: constant_values.go.golden

package info (click to toggle)
golang-golang-x-tools 1%3A0.5.0%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bookworm-backports
  • size: 16,592 kB
  • sloc: javascript: 2,011; asm: 1,635; sh: 192; yacc: 155; makefile: 52; ansic: 8
file content (47 lines) | stat: -rw-r--r-- 704 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
-- inlayHint --
package inlayHint //@inlayHint("package")

const True = true

type Kind int

const (
	KindNone Kind = iota< = 0>
	KindPrint< = 1>
	KindPrintf< = 2>
	KindErrorf< = 3>
)

const (
	u         = iota * 4< = 0>
	v float64 = iota * 42< = 42>
	w         = iota * 42< = 84>
)

const (
	a, b = 1, 2
	c, d< = 1, 2>
	e, f = 5 * 5, "hello" + "world"< = 25, "helloworld">
	g, h< = 25, "helloworld">
	i, j = true, f< = true, "helloworld">
)

// No hint
const (
	Int     = 3
	Float   = 3.14
	Bool    = true
	Rune    = '3'
	Complex = 2.7i
	String  = "Hello, world!"
)

var (
	varInt     = 3
	varFloat   = 3.14
	varBool    = true
	varRune    = '3' + '4'
	varComplex = 2.7i
	varString  = "Hello, world!"
)