github.com/ipld/go-ipld-prime@v0.21.0/node/basic/deprecated.go (about) 1 // This is a transitional package: please move your references to `node/basicnode`. 2 // The new package is identical: we've renamed the import path only. 3 // 4 // All content in this package is a thin wrapper around `node/basicnode`. 5 // Please update at your earliest convenience. 6 // 7 // This package will eventually be removed. 8 package basicnode 9 10 import ( 11 "github.com/ipld/go-ipld-prime/datamodel" 12 "github.com/ipld/go-ipld-prime/linking" 13 "github.com/ipld/go-ipld-prime/node/basicnode" 14 ) 15 16 var Prototype = basicnode.Prototype 17 18 func Chooser(_ datamodel.Link, _ linking.LinkContext) (datamodel.NodePrototype, error) { 19 return basicnode.Chooser(nil, linking.LinkContext{}) 20 } 21 func NewBool(value bool) datamodel.Node { return basicnode.NewBool(value) } 22 func NewBytes(value []byte) datamodel.Node { return basicnode.NewBytes(value) } 23 func NewFloat(value float64) datamodel.Node { return basicnode.NewFloat(value) } 24 func NewInt(value int64) datamodel.Node { return basicnode.NewInt(value) } 25 func NewLink(value datamodel.Link) datamodel.Node { return basicnode.NewLink(value) } 26 func NewString(value string) datamodel.Node { return basicnode.NewString(value) } 27 28 type Prototype__Any = basicnode.Prototype__Any 29 type Prototype__Bool = basicnode.Prototype__Bool 30 type Prototype__Bytes = basicnode.Prototype__Bytes 31 type Prototype__Float = basicnode.Prototype__Float 32 type Prototype__Int = basicnode.Prototype__Int 33 type Prototype__Link = basicnode.Prototype__Link 34 type Prototype__List = basicnode.Prototype__List 35 type Prototype__Map = basicnode.Prototype__Map 36 type Prototype__String = basicnode.Prototype__String