Documentation ¶
Rendered for windows/amd64
Index ¶
- func BitIsSet(number, bitPosition uint8) bool
- func BitSet(number, bitPosition uint8, doSet bool) uint8
- func BoolToInt32(b bool) int32
- func BoolToUint8(b bool) uint8
- func BoolToUintptr(b bool) uintptr
- func Break16(val uint16) (lo, hi uint8)
- func Break32(val uint32) (lo, hi uint16)
- func Break64(val uint64) (lo, hi uint32)
- func DurationToNano100(duration time.Duration) int64
- func Iif(cond bool, ifTrue, ifFalse interface{}) interface{}
- func Make16(lo, hi uint8) uint16
- func Make32(lo, hi uint16) uint32
- func Make64(lo, hi uint32) uint64
- func Nano100ToDuration(nanosec100 int64) time.Duration
- func RemoveAccelAmpersands(text string) string
- func ReverseBytes64(n uint64) uint64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BitSet ¶
Returns a new number with the nth bit set or clear.
bitPosition must be in the range 0-7.
func DurationToNano100 ¶
Converts time.Duration to 100 nanoseconds.
func Iif ¶
func Iif(cond bool, ifTrue, ifFalse interface{}) interface{}
Returns first value if condition is true, otherwise returns second.
Return type must be cast accordingly.
func Nano100ToDuration ¶
Converts 100 nanoseconds to time.Duration.
func RemoveAccelAmpersands ¶
"&He && she" becomes "He & she".
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.