.gitignore added
[dotfiles/.git] / .config / coc / extensions / coc-go-data / tools / pkg / mod / golang.org / x / tools@v0.1.0 / internal / lsp / testdata / workspacesymbol / main.go
1 package main
2
3 import (
4         "encoding/json"
5         "fmt"
6 )
7
8 func main() { // function
9         fmt.Println("Hello")
10 }
11
12 var myvar int // variable
13
14 type myType string // basic type
15
16 type myDecoder json.Decoder // to use the encoding/json import
17
18 func (m *myType) Blahblah() {} // method
19
20 type myStruct struct { // struct type
21         myStructField int // struct field
22 }
23
24 type myInterface interface { // interface
25         DoSomeCoolStuff() string // interface method
26 }
27
28 type embed struct {
29         myStruct
30
31         nestedStruct struct {
32                 nestedField int
33
34                 nestedStruct2 struct {
35                         int
36                 }
37         }
38
39         nestedInterface interface {
40                 myInterface
41                 nestedMethod()
42         }
43 }
44
45 func Dunk() int { return 0 }
46
47 func dunk() {}