File: main.go

package info (click to toggle)
golang-golang-x-tools 1%3A0.1.0%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 12,588 kB
  • sloc: javascript: 2,011; asm: 1,458; sh: 174; yacc: 155; makefile: 21; ansic: 17
file content (64 lines) | stat: -rw-r--r-- 2,558 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
package main

import (
	"io"
)

var _ = 1

var x = 42 //@mark(symbolsx, "x"), symbol("x", "x", "Variable", "", "main.x")

const y = 43 //@symbol("y", "y", "Constant", "", "main.y")

type Number int //@symbol("Number", "Number", "Number", "", "main.Number")

type Alias = string //@symbol("Alias", "Alias", "String", "", "main.Alias")

type NumberAlias = Number //@symbol("NumberAlias", "NumberAlias", "Number", "", "main.NumberAlias")

type (
	Boolean   bool   //@symbol("Boolean", "Boolean", "Boolean", "", "main.Boolean")
	BoolAlias = bool //@symbol("BoolAlias", "BoolAlias", "Boolean", "", "main.BoolAlias")
)

type Foo struct { //@mark(symbolsFoo, "Foo"), symbol("Foo", "Foo", "Struct", "", "main.Foo")
	Quux           //@mark(fQuux, "Quux"), symbol("Quux", "Quux", "Field", "Foo", "main.Foo.Quux")
	W    io.Writer //@symbol("W" , "W", "Field", "Foo", "main.Foo.W")
	Bar  int       //@mark(fBar, "Bar"), symbol("Bar", "Bar", "Field", "Foo", "main.Foo.Bar")
	baz  string    //@symbol("baz", "baz", "Field", "Foo", "main.Foo.baz")
}

type Quux struct { //@symbol("Quux", "Quux", "Struct", "", "main.Quux")
	X, Y float64 //@mark(qX, "X"), symbol("X", "X", "Field", "Quux", "main.X"), symbol("Y", "Y", "Field", "Quux", "main.Y")
}

func (f Foo) Baz() string { //@symbol("(Foo).Baz", "Baz", "Method", "", "main.Foo.Baz")
	return f.baz
}

func _() {}

func (q *Quux) Do() {} //@mark(qDo, "Do"), symbol("(*Quux).Do", "Do", "Method", "", "main.Quux.Do")

func main() { //@symbol("main", "main", "Function", "", "main.main")

}

type Stringer interface { //@symbol("Stringer", "Stringer", "Interface", "", "main.Stringer")
	String() string //@symbol("String", "String", "Method", "Stringer", "main.Stringer.String")
}

type ABer interface { //@mark(ABerInterface, "ABer"), symbol("ABer", "ABer", "Interface", "", "main.ABer")
	B()        //@symbol("B", "B", "Method", "ABer", "main.ABer.B")
	A() string //@mark(ABerA, "A"), symbol("A", "A", "Method", "ABer", "main.ABer.A")
}

type WithEmbeddeds interface { //@symbol("WithEmbeddeds", "WithEmbeddeds", "Interface", "", "main.WithEmbeddeds")
	Do()      //@symbol("Do", "Do", "Method", "WithEmbeddeds", "main.WithEmbeddeds.Do")
	ABer      //@symbol("ABer", "ABer", "Interface", "WithEmbeddeds", "main.WithEmbeddeds.ABer")
	io.Writer //@mark(ioWriter, "io.Writer"), symbol("io.Writer", "io.Writer", "Interface", "WithEmbeddeds", "main.WithEmbeddeds.Writer")
}

func Dunk() int { return 0 } //@symbol("Dunk", "Dunk", "Function", "", "main.Dunk")

func dunk() {} //@symbol("dunk", "dunk", "Function", "", "main.dunk")