MCPcopy Create free account
hub / github.com/goinaction/code / pretty

Method pretty

chapter5/listing46/listing46.go:11–13  ·  view source on GitHub ↗

format pretty-prints the duration value.

()

Source from the content-addressed store, hash-verified

9
10// format pretty-prints the duration value.
11func (d *duration) pretty() string {
12 return fmt.Sprintf("Duration: %d", *d)
13}
14
15// main is the entry point for the application.
16func main() {

Callers 1

mainFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected