Documentation
¶
Overview ¶
Example ¶
id := MustNew() fmt.Println(id.String())
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustNewString ¶
func MustNewString() string
MustNewString creates new SmartID and returns it as string or panics. MustNewString is equivalent of:
smartid.Must(smartid.New()).String()
Types ¶
type SmartID ¶
type SmartID [27]byte
A SmartID has size of 27 bytes which is encoded size of a 160 bit (20 byte) random identifier.
Click to show internal directories.
Click to hide internal directories.