{"modulePath":"github.com/github/git-sizer","version":"v1.6.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package meter\n\n## Variables\n\n```go\nvar NoProgressMeter noProgressMeter\n```\nNoProgressMeter is a \\`Progress\\` that doesn't actually report anything.\n\n```go\nvar Spinners = []string{\"|\", \"(\", \"\u003c\", \"-\", \"\u003c\", \"(\", \"|\", \")\", \"\u003e\", \"-\", \"\u003e\", \")\"}\n```\nSpinners is a slice of short strings that are repeatedly output in order to show the user that we are working, before we have any actual information to show.\n\n## Types\n\n```go\ntype Progress interface {\n\tStart(format string)\n\tInc()\n\tAdd(delta int64)\n\tDone()\n}\n```\nProgress is an interface for a simple progress meter. Call \\`Start()\\` to begin reporting. \\`format\\` should include some kind of '%d' field, into which will be written the current count. A spinner and a CR character will be added automatically.\n\nCall \\`Inc()\\` every time the quantity of interest increases. Call \\`Stop()\\` to stop reporting. After an instance's \\`Stop()\\` method has been called, it may be reused (starting at value 0) by calling \\`Start()\\` again.\n\n```go\nfunc NewProgressMeter(w io.Writer, period time.Duration) Progress\n```\nNewProgressMeter returns a progress meter that can be used to show progress to a TTY periodically, including an increasing int64 value.\n\n","path":"github.com/github/git-sizer/meter","name":"meter","synopsis":"","isRedistributable":true}
