Documentation ¶
Overview ¶
Package hrff (Human Readbale Flags and Formatting) Allows command line arguments like % dd bs=1Mi Provides SI unit formatting via %h and %H format characters Defines two news types, Int64 and Float64 which provide methods for flags to accept these kind of args
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var SIsufixes = map[string]float64{
"geop": 10000000000000000000000000000000,
"bronto": 10000000000000000000000000000,
"Y": 1000000000000000000000000,
"Z": 1000000000000000000000,
"E": 1000000000000000000,
"P": 1000000000000000,
"T": 1000000000000,
"G": 1000000000,
"M": 1000000,
"k": 1000,
"h": 100,
"da": 10,
"": 1,
"d": .1,
"c": .01,
"m": .001,
"µ": .000001,
"n": .000000001,
"p": .00000000001,
"f": .000000000000001,
"a": .000000000000000001,
"z": .000000000000000000001,
"y": .000000000000000000000001,
"u": .000001,
"Ki": 1024,
"Mi": 1024 * 1024,
"Gi": 1024 * 1024 * 1024,
"Ti": 1024 * 1024 * 1024 * 1024,
"Pi": 1024 * 1024 * 1024 * 1024 * 1024,
"Ei": 1024 * 1024 * 1024 * 1024 * 1024 * 1024,
"Zi": 1024 * 1024 * 1024 * 1024 * 1024 * 1024 * 1024,
"Yi": 1024 * 1024 * 1024 * 1024 * 1024 * 1024 * 1024 * 1024,
}
SIsufixes is public so you can add a prefix if you want to
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.