package incremental
import "github.com/GeertJohan/go.incremental"
package incremental provides concurency-safe incremental numbers.
This package was created by a simple piece of code located in the gen subdirectory. Please modify that command if you want to modify this package.
Index ¶
- type Int
- type Int16
- type Int32
- type Int64
- type Int8
- type Uint
- type Uint16
- type Uint32
- type Uint64
- type Uint8
Types ¶
type Int ¶
type Int struct {
// contains filtered or unexported fields
}
func (*Int) Last ¶
Last returns the number (int) that was returned by the most recent call to this instance's Next()
func (*Int) Next ¶
Next returns with an integer that is exactly one higher as the previous call to Next() for this Int
func (*Int) Set ¶
Set changes the increment to given value, the succeeding call to Next() will return the given value+1
type Int16 ¶
type Int16 struct {
// contains filtered or unexported fields
}
func (*Int16) Last ¶
Last returns the number (int16) that was returned by the most recent call to this instance's Next()
func (*Int16) Next ¶
Next returns with an integer that is exactly one higher as the previous call to Next() for this Int16
func (*Int16) Set ¶
Set changes the increment to given value, the succeeding call to Next() will return the given value+1
type Int32 ¶
type Int32 struct {
// contains filtered or unexported fields
}
func (*Int32) Last ¶
Last returns the number (int32) that was returned by the most recent call to this instance's Next()
func (*Int32) Next ¶
Next returns with an integer that is exactly one higher as the previous call to Next() for this Int32
func (*Int32) Set ¶
Set changes the increment to given value, the succeeding call to Next() will return the given value+1
type Int64 ¶
type Int64 struct {
// contains filtered or unexported fields
}
func (*Int64) Last ¶
Last returns the number (int64) that was returned by the most recent call to this instance's Next()
func (*Int64) Next ¶
Next returns with an integer that is exactly one higher as the previous call to Next() for this Int64
func (*Int64) Set ¶
Set changes the increment to given value, the succeeding call to Next() will return the given value+1
type Int8 ¶
type Int8 struct {
// contains filtered or unexported fields
}
func (*Int8) Last ¶
Last returns the number (int8) that was returned by the most recent call to this instance's Next()
func (*Int8) Next ¶
Next returns with an integer that is exactly one higher as the previous call to Next() for this Int8
func (*Int8) Set ¶
Set changes the increment to given value, the succeeding call to Next() will return the given value+1
type Uint ¶
type Uint struct {
// contains filtered or unexported fields
}
func (*Uint) Last ¶
Last returns the number (uint) that was returned by the most recent call to this instance's Next()
func (*Uint) Next ¶
Next returns with an integer that is exactly one higher as the previous call to Next() for this Uint
func (*Uint) Set ¶
Set changes the increment to given value, the succeeding call to Next() will return the given value+1
type Uint16 ¶
type Uint16 struct {
// contains filtered or unexported fields
}
func (*Uint16) Last ¶
Last returns the number (uint16) that was returned by the most recent call to this instance's Next()
func (*Uint16) Next ¶
Next returns with an integer that is exactly one higher as the previous call to Next() for this Uint16
func (*Uint16) Set ¶
Set changes the increment to given value, the succeeding call to Next() will return the given value+1
type Uint32 ¶
type Uint32 struct {
// contains filtered or unexported fields
}
func (*Uint32) Last ¶
Last returns the number (uint32) that was returned by the most recent call to this instance's Next()
func (*Uint32) Next ¶
Next returns with an integer that is exactly one higher as the previous call to Next() for this Uint32
func (*Uint32) Set ¶
Set changes the increment to given value, the succeeding call to Next() will return the given value+1
type Uint64 ¶
type Uint64 struct {
// contains filtered or unexported fields
}
func (*Uint64) Last ¶
Last returns the number (uint64) that was returned by the most recent call to this instance's Next()
func (*Uint64) Next ¶
Next returns with an integer that is exactly one higher as the previous call to Next() for this Uint64
func (*Uint64) Set ¶
Set changes the increment to given value, the succeeding call to Next() will return the given value+1
type Uint8 ¶
type Uint8 struct {
// contains filtered or unexported fields
}
func (*Uint8) Last ¶
Last returns the number (uint8) that was returned by the most recent call to this instance's Next()
func (*Uint8) Next ¶
Next returns with an integer that is exactly one higher as the previous call to Next() for this Uint8
func (*Uint8) Set ¶
Set changes the increment to given value, the succeeding call to Next() will return the given value+1
Source Files ¶
doc.go int.go int16.go int32.go int64.go int8.go uint.go uint16.go uint32.go uint64.go uint8.go
Directories ¶
Path | Synopsis |
---|---|
example | |
gen |
- Version
- v1.0.0 (latest)
- Published
- Mar 16, 2019
- Platform
- windows/amd64
- Imports
- 1 packages
- Last checked
- 2 months ago –
Tools for package owners.