Documentation ¶ Index ¶ Variables type Id func (id Id) IsNil() bool func (id Id) String() string Constants ¶ This section is empty. Variables ¶ View Source var ( // Nil is a nil id. Nil Id = "" // New generates a new id. New = func() Id { return Id(ksuid.New().String()) } // From generate id from string. From = func(str string) Id { return Id(str) } ) Functions ¶ This section is empty. Types ¶ type Id ¶ type Id string Id represents a global unique id. func (Id) IsNil ¶ func (id Id) IsNil() bool IsNil checks if an Id is nil. func (Id) String ¶ func (id Id) String() string String implements fmt.Stringer Source Files ¶ View all Source files id.go Click to show internal directories. Click to hide internal directories.