Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NaiveUniqueIntGenerator ¶
type NaiveUniqueIntGenerator struct {
// contains filtered or unexported fields
}
NaiveUniqueIntGenerator is a native implement of UniqueIntGenerator
func NewNaiveUniqueIntGenerator ¶
func NewNaiveUniqueIntGenerator() *NaiveUniqueIntGenerator
NewNaiveUniqueIntGenerator returns a new NaiveUniqueIntGenerator object
func (*NaiveUniqueIntGenerator) GetInt ¶
func (generator *NaiveUniqueIntGenerator) GetInt() int
GetInt returns a unique integer
type UniqueIntGenerator ¶
UniqueIntGenerator provide methods to generate unique integers
func GetUniqueIntGeneratorIns ¶
func GetUniqueIntGeneratorIns() UniqueIntGenerator
GetUniqueIntGeneratorIns returns a singleton of UniqueIntGenerator
Click to show internal directories.
Click to hide internal directories.