Documentation ¶
Index ¶
- Constants
- func BitSize[V constraints.Integer](v V) string
- func BitSizeDense[V constraints.Integer](v V) string
- func BitSizeExact[V constraints.Integer](v V) string
- func BitSpeed[V constraints.Integer](v V) string
- func BitSpeedDense[V constraints.Integer](v V) string
- func Bool(v bool, yes, no string) string
- func ByteSize[V constraints.Integer](v V) string
- func ByteSizeDense[V constraints.Integer](v V) string
- func ByteSizeExact[V constraints.Integer](v V) string
- func ByteSpeed[V constraints.Integer](v V) string
- func ByteSpeedDense[V constraints.Integer](v V) string
- func EnableDisable(v bool) string
- func Hex(buf []byte) string
- func Int[V constraints.Integer](v V, ctx IntCtx) string
- func Join(v ...any) string
- func JoinSlice[T any](v []T) string
- func JoinSliceWith[T any](splitter string, v []T) string
- func JoinWith(splitter string, v ...any) string
- func NotableJoin(v ...any) string
- func NotableJoinSlice[T any](v []T) string
- func NotableJoinSliceWith[T any](splitter string, v []T) string
- func NotableJoinWith(splitter string, v ...any) string
- func OnOff(v bool) string
- func OnlineOffline(v bool) string
- func Option[T any](ptr *T) string
- func Print(v ...any)
- func Printf(format string, v ...any)
- func SuccessFailure(v bool) string
- func UpDown(v bool) string
- func Value(v any) string
- func WideInt[V constraints.Integer](v V) string
- func YesNo(v bool) string
- type IntCtx
Constants ¶
View Source
const IntPrefix = "KMGTPE"
Variables ¶
This section is empty.
Functions ¶
func BitSize ¶ added in v0.1.1
func BitSize[V constraints.Integer](v V) string
func BitSizeDense ¶ added in v0.1.1
func BitSizeDense[V constraints.Integer](v V) string
func BitSizeExact ¶ added in v0.1.14
func BitSizeExact[V constraints.Integer](v V) string
func BitSpeed ¶ added in v0.1.1
func BitSpeed[V constraints.Integer](v V) string
func BitSpeedDense ¶ added in v0.1.1
func BitSpeedDense[V constraints.Integer](v V) string
func ByteSize ¶ added in v0.1.1
func ByteSize[V constraints.Integer](v V) string
func ByteSizeDense ¶ added in v0.1.1
func ByteSizeDense[V constraints.Integer](v V) string
func ByteSizeExact ¶ added in v0.1.14
func ByteSizeExact[V constraints.Integer](v V) string
func ByteSpeed ¶ added in v0.1.1
func ByteSpeed[V constraints.Integer](v V) string
func ByteSpeedDense ¶ added in v0.1.1
func ByteSpeedDense[V constraints.Integer](v V) string
func EnableDisable ¶
func JoinSliceWith ¶ added in v0.1.7
func NotableJoin ¶ added in v0.1.28
func NotableJoinSlice ¶ added in v0.1.28
func NotableJoinSliceWith ¶ added in v0.1.28
func NotableJoinWith ¶ added in v0.1.28
func OnlineOffline ¶ added in v0.1.71
func SuccessFailure ¶ added in v0.1.26
func WideInt ¶ added in v0.1.1
func WideInt[V constraints.Integer](v V) string
Types ¶
Click to show internal directories.
Click to hide internal directories.