Documentation
¶
Index ¶
- func ByteCountSI(b int64) string
- func ParseValidatorError(err error) (res error)
- func RemoveNulls(m map[string]interface{}) map[string]interface{}
- func RoundFloatPrecisionUp(val float64, precision uint) float64
- func ToFixed(num float64, precision int) float64
- type DurationUnit
- type ErrorValidation
- type Stacks
- type Time
- func (c *Time) Duration(dur time.Duration) (format string)
- func (c *Time) DurationToUnit(dur time.Duration) (format DurationUnit)
- func (c *Time) TimeStringDateOnly(dur time.Time) (format string)
- func (c *Time) TimeStringTimeOnly(dur time.Time) (format string)
- func (c *Time) TimeStringTimeOnlyWithMilliSecond(s time.Time) (ts string)
- func (c *Time) TimeStringWitLongDate(dur time.Time) (format string)
- func (c *Time) TimeStringWithDate(dur time.Time) (format string)
- func (c *Time) UnixTime(t int64) (ts time.Time)
- func (c *Time) UnixTimeNano(t int64) (ts time.Time)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ByteCountSI ¶ added in v0.0.5
func ParseValidatorError ¶
func RemoveNulls ¶ added in v1.1.91
func RoundFloatPrecisionUp ¶ added in v0.1.1
Types ¶
type DurationUnit ¶
type DurationUnit struct {
Day int `json:"day"`
Hour int `json:"hour"`
Minute int `json:"minute"`
Second int `json:"second"`
}
DurationUnit -
type ErrorValidation ¶
type Stacks ¶
type Stacks struct {
Func string `json:"func"`
Package string `json:"package"`
File string `json:"file"`
Line int `json:"line"`
}
func ParseStack ¶
type Time ¶
type Time struct{}
func (*Time) DurationToUnit ¶
func (c *Time) DurationToUnit(dur time.Duration) (format DurationUnit)
DurationToUnit - convert time duration to individual unit
func (*Time) TimeStringDateOnly ¶
TimeStringDateOnly -
func (*Time) TimeStringTimeOnly ¶
TimeStringTimeOnly -
func (*Time) TimeStringTimeOnlyWithMilliSecond ¶
TimeStringTimeOnlyWithMilliSecond -
func (*Time) TimeStringWitLongDate ¶
TimeStringWitLongDate -
func (*Time) TimeStringWithDate ¶
TimeStringWithDate -
Directories
¶
| Path | Synopsis |
|---|---|
|
Package bytesize provides a way to show readable values of byte size by reediting the code from http://golang.org/doc/effective_go.html.
|
Package bytesize provides a way to show readable values of byte size by reediting the code from http://golang.org/doc/effective_go.html. |
Click to show internal directories.
Click to hide internal directories.