From 7a824a8044db96a850e2c34e6fca2153399f4da2 Mon Sep 17 00:00:00 2001 From: NHOrus Date: Thu, 14 Apr 2016 13:46:29 +0300 Subject: [PATCH] Some things needs to be seen closer to when they are used --- settings.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/settings.go b/settings.go index 1487e95..6ffcc57 100644 --- a/settings.go +++ b/settings.go @@ -11,6 +11,9 @@ import ( flag "github.com/jessevdk/go-flags" ) +//Bool is a bool, because this is suggested method for go-flags to work with a boolean flag that could be flipped both ways +type Bool bool + //Config are concrete and stored in configuration file type Config struct { ImageDir string `long:"dir" description:"Target Directory" default:"img" ini-name:"downdir"` @@ -160,9 +163,6 @@ func checkFlagError(err error) { } } -//Bool is a bool, because this is suggested method for go-flags to work with a boolean flag that could be flipped both ways -type Bool bool - //UnmarshalFlag implements flags.Unmarshaler interface for Bool func (b *Bool) UnmarshalFlag(value string) error { t, err := strconv.ParseBool(value)