Help us shape the future of Go! Take the 2026 Go Developer Survey

conversion

package
v0.0.40 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 2, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Convert

func Convert(value string, lst *sdcpb.SchemaLeafType) (*sdcpb.TypedValue, error)

func ConvertBinary

func ConvertBinary(value string, slt *sdcpb.SchemaLeafType) (*sdcpb.TypedValue, error)

func ConvertBoolean

func ConvertBoolean(value string, _ *sdcpb.SchemaLeafType) (*sdcpb.TypedValue, error)

func ConvertDecimal64

func ConvertDecimal64(value string, lst *sdcpb.SchemaLeafType) (*sdcpb.TypedValue, error)

func ConvertEnumeration

func ConvertEnumeration(value string, slt *sdcpb.SchemaLeafType) (*sdcpb.TypedValue, error)

func ConvertIdentityRef

func ConvertIdentityRef(value string, slt *sdcpb.SchemaLeafType) (*sdcpb.TypedValue, error)

func ConvertInstanceIdentifier

func ConvertInstanceIdentifier(value string, slt *sdcpb.SchemaLeafType) (*sdcpb.TypedValue, error)

func ConvertInt8

func ConvertInt8(value string, lst *sdcpb.SchemaLeafType) (*sdcpb.TypedValue, error)

func ConvertInt16

func ConvertInt16(value string, lst *sdcpb.SchemaLeafType) (*sdcpb.TypedValue, error)

func ConvertInt32

func ConvertInt32(value string, lst *sdcpb.SchemaLeafType) (*sdcpb.TypedValue, error)

func ConvertInt64

func ConvertInt64(value string, lst *sdcpb.SchemaLeafType) (*sdcpb.TypedValue, error)

func ConvertLeafRef

func ConvertLeafRef(value string, slt *sdcpb.SchemaLeafType) (*sdcpb.TypedValue, error)

func ConvertString

func ConvertString(value string, lst *sdcpb.SchemaLeafType) (*sdcpb.TypedValue, error)

func ConvertUint8

func ConvertUint8(value string, lst *sdcpb.SchemaLeafType) (*sdcpb.TypedValue, error)

func ConvertUint16

func ConvertUint16(value string, lst *sdcpb.SchemaLeafType) (*sdcpb.TypedValue, error)

func ConvertUint32

func ConvertUint32(value string, lst *sdcpb.SchemaLeafType) (*sdcpb.TypedValue, error)

func ConvertUint64

func ConvertUint64(value string, lst *sdcpb.SchemaLeafType) (*sdcpb.TypedValue, error)

func ConvertUnion

func ConvertUnion(value string, slts []*sdcpb.SchemaLeafType) (*sdcpb.TypedValue, error)

Types

type SRng

type SRng struct {
	// contains filtered or unexported fields
}

urng represents a single unsigned range

func (*SRng) String

func (r *SRng) String() string

type SRnges

type SRnges struct {
	// contains filtered or unexported fields
}

urnges represents a collection of rng (range)

func NewSrnges

func NewSrnges(rangeDefinition string, min, max int64) *SRnges

type URng

type URng struct {
	// contains filtered or unexported fields
}

URng represents a single unsigned range

func (*URng) String

func (r *URng) String() string

type URnges

type URnges struct {
	// contains filtered or unexported fields
}

URnges represents a collection of rng (range)

func NewUrnges

func NewUrnges(rangeDefinition string, min, max uint64) *URnges

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL