summaryrefslogtreecommitdiff
path: root/mongooplog/options.go
diff options
context:
space:
mode:
authorWisdom Omuya <deafgoat@gmail.com>2015-01-22 13:43:37 -0500
committerWisdom Omuya <deafgoat@gmail.com>2015-01-23 15:29:06 -0500
commite7efa87fbc43b79d969db43fe7a0fafb15f1be45 (patch)
treed0e90c7f2e155bdcb74e0be7316ce6aec6f54157 /mongooplog/options.go
parent7a4dc5210c5c9706737969c11dafc74207fc7977 (diff)
downloadmongo-e7efa87fbc43b79d969db43fe7a0fafb15f1be45.tar.gz
TOOLS-591: improve package documentation
Diffstat (limited to 'mongooplog/options.go')
-rw-r--r--mongooplog/options.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/mongooplog/options.go b/mongooplog/options.go
index 4fdaa364e1f..c1f3ddd65af 100644
--- a/mongooplog/options.go
+++ b/mongooplog/options.go
@@ -11,12 +11,12 @@ type SourceOptions struct {
Seconds bson.MongoTimestamp `long:"seconds" short:"s" description:"specify a number of seconds for mongooplog to pull from the remote host" default:"86400" default-mask:"-"`
}
-func (self *SourceOptions) Name() string {
+func (_ *SourceOptions) Name() string {
return "source"
}
-func (self *SourceOptions) Validate() error {
- if self.From == "" {
+func (o *SourceOptions) Validate() error {
+ if o.From == "" {
return fmt.Errorf("need to specify --from")
}
return nil