gen := flow.NewAddressGenerator(flow.Mainnet)
address := gen.Address()
fmt.Println(address.Hex())
fmt.Println(address.String())
When I want to generate flow address, it panic :
windows:
# github.com/onflow/atree
C:\Users\Administrator\go\pkg\mod\github.com\onflow\atree@v0.8.1\typeinfo.go:33:15: undefined: cbor.StreamEncoder
C:\Users\Administrator\go\pkg\mod\github.com\onflow\atree@v0.8.1\typeinfo.go:39:16: undefined: cbor.StreamDecoder
C:\Users\Administrator\go\pkg\mod\github.com\onflow\atree@v0.8.1\encode.go:31:26: undefined: cbor.StreamEncoder
C:\Users\Administrator\go\pkg\mod\github.com\onflow\atree@v0.8.1\encode.go:61:16: undefined: cbor.StreamDecoder
C:\Users\Administrator\go\pkg\mod\github.com\onflow\atree@v0.8.1\array.go:273:34: undefined: cbor.StreamDecoder
C:\Users\Administrator\go\pkg\mod\github.com\onflow\atree@v0.8.1\array.go:605:12: undefined: cbor.StreamDecoder
C:\Users\Administrator\go\pkg\mod\github.com\onflow\atree@v0.8.1\map.go:454:32: undefined: cbor.StreamDecoder
C:\Users\Administrator\go\pkg\mod\github.com\onflow\atree@v0.8.1\map.go:535:39: undefined: cbor.StreamDecoder
C:\Users\Administrator\go\pkg\mod\github.com\onflow\atree@v0.8.1\map.go:588:45: undefined: cbor.StreamDecoder
C:\Users\Administrator\go\pkg\mod\github.com\onflow\atree@v0.8.1\map.go:798:52: undefined: cbor.StreamDecoder
C:\Users\Administrator\go\pkg\mod\github.com\onflow\atree@v0.8.1\map.go:798:52: too many errors (exit status 1)
mac os:
# github.com/onflow/atree
../../../Workspace/Environment/gopath/pkg/mod/github.com/onflow/atree@v0.8.1/typeinfo.go:33:15: undefined: cbor.StreamEncoder
../../../Workspace/Environment/gopath/pkg/mod/github.com/onflow/atree@v0.8.1/typeinfo.go:39:16: undefined: cbor.StreamDecoder
../../../Workspace/Environment/gopath/pkg/mod/github.com/onflow/atree@v0.8.1/encode.go:31:26: undefined: cbor.StreamEncoder
../../../Workspace/Environment/gopath/pkg/mod/github.com/onflow/atree@v0.8.1/encode.go:61:16: undefined: cbor.StreamDecoder
../../../Workspace/Environment/gopath/pkg/mod/github.com/onflow/atree@v0.8.1/array.go:273:34: undefined: cbor.StreamDecoder
../../../Workspace/Environment/gopath/pkg/mod/github.com/onflow/atree@v0.8.1/array.go:605:12: undefined: cbor.StreamDecoder
../../../Workspace/Environment/gopath/pkg/mod/github.com/onflow/atree@v0.8.1/map.go:454:32: undefined: cbor.StreamDecoder
../../../Workspace/Environment/gopath/pkg/mod/github.com/onflow/atree@v0.8.1/map.go:535:39: undefined: cbor.StreamDecoder
../../../Workspace/Environment/gopath/pkg/mod/github.com/onflow/atree@v0.8.1/map.go:588:45: undefined: cbor.StreamDecoder
../../../Workspace/Environment/gopath/pkg/mod/github.com/onflow/atree@v0.8.1/map.go:798:52: undefined: cbor.StreamDecoder
../../../Workspace/Environment/gopath/pkg/mod/github.com/onflow/atree@v0.8.1/map.go:798:52: too many errors (exit status 1)
When I want to generate flow address, it panic :
windows:
mac os: