mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-27 15:42:54 +00:00
3e2755e66d
config_extended.yml contains an example of user-defined configuration file with extended event types. User-defined event types are allowed to be named and complicated, i.e. properly support extended types notation. Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
25 lines
433 B
Go
25 lines
433 B
Go
package structs
|
|
|
|
import (
|
|
"github.com/nspcc-dev/neo-go/pkg/interop"
|
|
"github.com/nspcc-dev/neo-go/pkg/interop/runtime"
|
|
)
|
|
|
|
func Main() {
|
|
runtime.Notify("! complicated name %$#", "str1")
|
|
}
|
|
|
|
func CrazyMap() {
|
|
runtime.Notify("SomeMap", map[int][]map[string][]interop.Hash160{})
|
|
}
|
|
|
|
func Struct() {
|
|
runtime.Notify("SomeStruct", struct {
|
|
I int
|
|
B bool
|
|
}{I: 123, B: true})
|
|
}
|
|
|
|
func Array() {
|
|
runtime.Notify("SomeArray", [][]int{})
|
|
}
|