mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-26 19:42:23 +00:00
e1a581be0e
Signed-off-by: Evgeniy Stratonikov <evgeniy@nspcc.ru>
16 lines
201 B
Go
16 lines
201 B
Go
package method
|
|
|
|
// X is some type.
|
|
type X struct {
|
|
a int
|
|
}
|
|
|
|
// GetA returns the value of a.
|
|
func (x X) GetA() int {
|
|
return x.a
|
|
}
|
|
|
|
// NewX creates a new X instance.
|
|
func NewX() X {
|
|
return X{a: 42}
|
|
}
|