data

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoolAsBytes

func BoolAsBytes(b bool) []byte

func BoolFromBytes

func BoolFromBytes(bs []byte) (bool, error)

func BytesToInt64

func BytesToInt64(bs []byte) int64

func Int64ToBytes

func Int64ToBytes(i int64) []byte

Types

type Set

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

func BytesToSet

func BytesToSet(bs []byte) (*Set, error)

func NewSet

func NewSet(items ...string) *Set

func (*Set) Add

func (s *Set) Add(item string)

func (*Set) AsBytes

func (s *Set) AsBytes() ([]byte, error)

func (*Set) Get

func (s *Set) Get() []string

func (*Set) Remove

func (s *Set) Remove(item string)

Jump to

Keyboard shortcuts

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