conversion

package
v0.14.2 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AsInt64

func AsInt64(w reflect.Value) (int64, bool)

func ConvertFrom

func ConvertFrom(me, you interface{}) error

ConvertFrom applies QiMessaging compatibility rules to convert `you` into `me`. Me can be populated with default values.

func DecodeFrom

func DecodeFrom(d encoding.Decoder, x interface{}, typ reflect.Type) error

DecodeFrom decodes x from an encoded value of tye `typ`.

func EncodeInto

func EncodeInto(e encoding.Encoder, x interface{}, typ reflect.Type) error

EncodeInto encodes x as if it was of type `typ`.

func IsConvertibleInto

func IsConvertibleInto(from, into reflect.Type) bool

IsConvertibleInto returns true if the `from` type can be converted into the `into` type.

Types

This section is empty.

Jump to

Keyboard shortcuts

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