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