github.com/nspcc-dev/neo-go@v0.105.2-0.20240517133400-6be757af3eba/cli/smartcontract/testdata/rpcbindings/notifications/notifications.go (about) 1 package structs 2 3 import ( 4 "github.com/nspcc-dev/neo-go/pkg/interop" 5 "github.com/nspcc-dev/neo-go/pkg/interop/runtime" 6 ) 7 8 func Main() { 9 runtime.Notify("! complicated name %$#", "str1") 10 } 11 12 func CrazyMap() { 13 runtime.Notify("SomeMap", map[int][]map[string][]interop.Hash160{}) 14 } 15 16 func Struct() { 17 runtime.Notify("SomeStruct", struct { 18 I int 19 B bool 20 }{I: 123, B: true}) 21 } 22 23 func Array() { 24 runtime.Notify("SomeArray", [][]int{}) 25 } 26 27 // UnexportedField emits notification with unexported field that must be converted 28 // to exported in the resulting RPC binding. 29 func UnexportedField() { 30 runtime.Notify("SomeUnexportedField", struct { 31 i int 32 }{i: 123}) 33 }