textx

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromBase64

func FromBase64(data []byte) ([]byte, error)

func MarshalText

func MarshalText(v any) ([]byte, error)

func ToBase64

func ToBase64(raw []byte) []byte

func UnmarshalText

func UnmarshalText(data []byte, v any) error

Types

type ErrInvalidUnmarshal

type ErrInvalidUnmarshal struct {
	Type reflect.Type
}

func (*ErrInvalidUnmarshal) Error

func (e *ErrInvalidUnmarshal) Error() string

type ErrMarshalUnsupportedType

type ErrMarshalUnsupportedType struct {
	Type reflect.Type
}

func (*ErrMarshalUnsupportedType) Error

func (e *ErrMarshalUnsupportedType) Error() string

type ErrUnmarshalFailed

type ErrUnmarshalFailed struct {
	Data []byte
	Type reflect.Type
	Err  string
}

func (*ErrUnmarshalFailed) Error

func (e *ErrUnmarshalFailed) Error() string

type ErrUnmarshalUnsupportedType

type ErrUnmarshalUnsupportedType struct {
	Type reflect.Type
}

func (*ErrUnmarshalUnsupportedType) Error

Jump to

Keyboard shortcuts

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