github.com/nspcc-dev/neo-go@v0.105.2-0.20240517133400-6be757af3eba/pkg/compiler/testdata/method/struct.go (about)

     1  package method
     2  
     3  // X is some type.
     4  type X struct {
     5  	a int
     6  }
     7  
     8  // GetA returns the value of a.
     9  func (x X) GetA() int {
    10  	return x.a
    11  }
    12  
    13  // NewX creates a new X instance.
    14  func NewX() X {
    15  	return X{a: 42}
    16  }