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

Function New

chapter5/listing68/counters/counters.go:10–12  ·  view source on GitHub ↗

New creates and returns values of the unexported type alertCounter.

(value int)

Source from the content-addressed store, hash-verified

8// New creates and returns values of the unexported
9// type alertCounter.
10func New(value int) alertCounter {
11 return alertCounter(value)
12}

Callers

nothing calls this directly

Calls 1

alertCounterTypeAlias · 0.70

Tested by

no test coverage detected