Go Viewer Test

Home|go_viewer_test/test_files/say_hello2.go
1package main
2
3import (
4    "fmt"
5    "sync"
6)
7
8var test2 string = "test"
9
10type TestStructSub2 struct {
11    E string
12    F int
13}
14
15var instance *TestStructSub2
16var once sync.Once
17
18func GetTestStructSubMethod() *TestStructSub2 {
19    once.Do(func() {
20
21        instance = &TestStructSub2{
22            E"methodTest",
23        }
24    })
25    return instance
26}
27
28func (ts TestStructSub2SayGood(word string) {
29    fmt.Printf("hello good %s %s"wordts.E)
30
31    test = ""
32}
33
34func TestPackageSayGood(word string) {
35    fmt.Printf("hello good %s"word)
36
37    test = ""
38}
39
MembersX
TestStructSub2.E
TestStructSub2.SayGood.ts
TestStructSub2.SayGood
TestStructSub2.SayGood.word
TestPackageSayGood.word
once
GetTestStructSubMethod
TestPackageSayGood
sync
test2
TestStructSub2
TestStructSub2.F
instance
Members
X