base64

package module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2019 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 ID

type ID struct {
	Value uuid.UUID
}

ID is a base64 endcoded uuid.UUID

func NewID

func NewID(v uuid.UUID) ID

NewID creates a new NewBase64ID

func NewIDFromEncoded

func NewIDFromEncoded(s string) ID

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

func (ID) MarshalJSON

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

MarshalJSON handles json marshal

func (*ID) Scan

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

Scan ID

func (*ID) String

func (b *ID) String() string

func (*ID) UnmarshalJSON

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

UnmarshalJSON handles json unmarshal

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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