Documentation ¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Counter ¶
type Counter struct {
// contains filtered or unexported fields
}
Example ¶
package main import ( "time" "676f.dev/trout/counter" "github.com/fatih/color" ) func main() { c := counter.NewCounter(color.HiCyanString("Hello")+"(", "x)") time.Sleep(1 * time.Second) c.Inc() time.Sleep(1 * time.Second) c.Inc() time.Sleep(1 * time.Second) c.Inc() time.Sleep(1 * time.Second) c.End() }
Output:
func NewCounter ¶
Click to show internal directories.
Click to hide internal directories.