Documentation ¶
Overview ¶
Example (Dur) ¶
Fix https://github.com/fractalqb/tiktak/issues/3
d := 48*time.Minute + 5*time.Second + 714286*time.Microsecond fmt.Println(fmtDuration(d)) d = 8*time.Hour + 30*time.Minute + 8*time.Second + 571429*time.Microsecond fmt.Println(fmtDuration(d))
Output: 48'05.714" 08:30'08.571"
Index ¶
Examples ¶
Constants ¶
View Source
const ( DateFmt = "Mon, 02 Jan 2006" ShortDateFmt = "Mon, 02 Jan" )
Variables ¶
View Source
var ( MinutesFmts = cfgFmts{ // contains filtered or unexported fields } SecondsFmts = cfgFmts{ // contains filtered or unexported fields } FracCFmts = cfgFmts{ // contains filtered or unexported fields } )
Functions ¶
func ParseSpanID ¶ added in v0.3.1
Example ¶
for _, id := range []string{"2", "4", "G", "74", "1EkG"} { fmt.Println(ParseSpanID(id)) }
Output: 2 <nil> 4 <nil> 16 <nil> 256 <nil> 65536 <nil>
Types ¶
Click to show internal directories.
Click to hide internal directories.