Created
February 13, 2015 22:24
-
-
Save tj/525d705e76734da5e2c6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type Worker struct { | |
*context.Context | |
} | |
func (w *Worker) SomeMethod(){ | |
... | |
w.Stats.IncrBy(n, "events", "published") | |
w.Log.Info("parsed %s in %s (size=%s) (events=%d)", file, time.Since(start), size, n) | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment