cdid

package
v1.6.6-beta1 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2025 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsCDIDChar

func IsCDIDChar(c byte) bool

func IsSeemsCDID

func IsSeemsCDID(str string, expectPrefix byte) bool

Types

type CDID

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

func Make

func Make() CDID

func New

func New(data [10]byte, t time.Time) CDID

func NewFromBytes

func NewFromBytes(b []byte) CDID

func NewWithAutoTime

func NewWithAutoTime(data [10]byte) CDID

func Parse

func Parse(s string) (CDID, error)

func (*CDID) Bytes

func (c *CDID) Bytes() []byte

func (CDID) GetTime

func (c CDID) GetTime() time.Time

func (*CDID) SetData

func (c *CDID) SetData(data [10]byte)

func (*CDID) SetTime

func (c *CDID) SetTime(t time.Time)

func (CDID) String

func (c CDID) String() string

Jump to

Keyboard shortcuts

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