util

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2017 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsHashString

func IsHashString(str string) bool

IsHashString ...

func RandBytes

func RandBytes(size int) []byte

RandBytes ...

func RandPass

func RandPass(length int, count ...int) string

RandPass ...

func SHA256Sum

func SHA256Sum(str string) string

SHA256Sum ...

func Time

func Time(t time.Time) time.Time

Time returns the time with millisecond precision.

Types

type OID

type OID uint64

OID is unique id

func NewOID

func NewOID() OID

NewOID returns a OID instance

func ParseOID

func ParseOID(str string) (OID, error)

ParseOID ...

func (OID) Equal

func (s OID) Equal(a OID) bool

Equal ...

func (*OID) MarshalText

func (s *OID) MarshalText() ([]byte, error)

MarshalText ...

func (OID) String

func (s OID) String() string

func (OID) Time

func (s OID) Time() time.Time

Time ...

func (*OID) UnmarshalText

func (s *OID) UnmarshalText(b []byte) error

UnmarshalText ...

func (OID) Valid

func (s OID) Valid() bool

Valid ...

Jump to

Keyboard shortcuts

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