MCPcopy
hub / github.com/adonovan/gopl.io / ExamplePrintDuration

Function ExamplePrintDuration

ch12/methods/methods_test.go:13–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11)
12
13func ExamplePrintDuration() {
14 methods.Print(time.Hour)
15 // Output:
16 // type time.Duration
17 // func (time.Duration) Hours() float64
18 // func (time.Duration) Minutes() float64
19 // func (time.Duration) Nanoseconds() int64
20 // func (time.Duration) Seconds() float64
21 // func (time.Duration) String() string
22}
23
24func ExamplePrintReplacer() {
25 methods.Print(new(strings.Replacer))

Callers

nothing calls this directly

Calls 1

PrintFunction · 0.92

Tested by

no test coverage detected