base64

package module
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: May 22, 2020 License: MIT Imports: 6 Imported by: 0

README

base64

base64 encoded types

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Int

type Int int64

Int is a base64 encoded int64

func (Int) MarshalJSON

func (b Int) MarshalJSON() ([]byte, error)

MarshalJSON handles json marshal

func (*Int) UnmarshalJSON

func (b *Int) UnmarshalJSON(data []byte) error

UnmarshalJSON handles json unmarshal

type UUID added in v0.2.0

type UUID struct {
	Value uuid.UUID
}

UUID is a base64 endcoded uuid.UUID

func NewUUID added in v0.2.0

func NewUUID(v uuid.UUID) UUID

NewUUID creates a new NewBase64ID

func NewUUIDFromEncoded added in v0.2.0

func NewUUIDFromEncoded(s string) (UUID, error)

NewUUIDFromEncoded creates a new base64.ID from a base64 encoded string

func (UUID) MarshalJSON added in v0.2.0

func (b UUID) MarshalJSON() ([]byte, error)

MarshalJSON handles json marshal

func (*UUID) Scan added in v0.2.0

func (b *UUID) Scan(value interface{}) error

Scan ID

func (*UUID) String added in v0.2.0

func (b *UUID) String() string

func (*UUID) UnmarshalJSON added in v0.2.0

func (b *UUID) UnmarshalJSON(data []byte) error

UnmarshalJSON handles json unmarshal

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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