From ed20f0b21adbd6f4a724187f462654971fe1606b Mon Sep 17 00:00:00 2001 From: Harrison Date: Sun, 2 Aug 2015 17:39:30 +1000 Subject: [PATCH] Fix all of the namespace issues I feel like SUCH an idiot right now... --- configure.go | 2 +- configure_test.go | 2 +- doc.go | 4 ++-- environment.go | 2 +- environment_test.go | 2 +- example/echo.go | 10 +++++----- example/hello.go | 8 ++++---- flag.go | 2 +- flag_test.go | 2 +- json.go | 2 +- 10 files changed, 18 insertions(+), 18 deletions(-) diff --git a/configure.go b/configure.go index 74393e5..6d4ccb7 100644 --- a/configure.go +++ b/configure.go @@ -1,4 +1,4 @@ -package configeur +package configure import ( "fmt" diff --git a/configure_test.go b/configure_test.go index 41b2842..19a563f 100644 --- a/configure_test.go +++ b/configure_test.go @@ -1,4 +1,4 @@ -package configeur +package configure import ( "fmt" diff --git a/doc.go b/doc.go index 09100b6..6ddfdb6 100644 --- a/doc.go +++ b/doc.go @@ -1,4 +1,4 @@ -// Package configeur is an easy to use multi-layer configuration system. +// Package configure is an easy to use multi-layer configuration system. // // Examples can be found in the example folder (http://github.com/paked/configeur/blob/master/examples/) // as well as a getting started guide in the main README file (http://github.com/paked/configeur). @@ -22,4 +22,4 @@ // // If you do create your own Checkers I would be more than happy to add a link to the README in the github repository. // -package configeur +package configure diff --git a/environment.go b/environment.go index 325193d..239992c 100644 --- a/environment.go +++ b/environment.go @@ -1,4 +1,4 @@ -package configeur +package configure import ( "errors" diff --git a/environment_test.go b/environment_test.go index 217a4d0..3da10e5 100644 --- a/environment_test.go +++ b/environment_test.go @@ -1,4 +1,4 @@ -package configeur +package configure import ( "os" diff --git a/example/echo.go b/example/echo.go index 1dc5888..7a850a0 100644 --- a/example/echo.go +++ b/example/echo.go @@ -3,12 +3,12 @@ package main import ( "fmt" - "github.com/paked/configeur" + "github.com/paked/configure" ) var ( // set up a configeur instance with no stack - conf = configeur.New() + conf = configure.New() // declare flags / things to configure amount = conf.Int("amount", 0, "how many times you want the string repeated!") message = conf.String("message", "Echo!", "a selected string") @@ -17,9 +17,9 @@ var ( func init() { // add configuration middlewears to the stack - conf.Use(configeur.NewFlagWithUsage(usage)) - conf.Use(configeur.NewJSONFromFile("echo.json")) - conf.Use(configeur.NewEnvironment()) + conf.Use(configure.NewFlagWithUsage(usage)) + conf.Use(configure.NewJSONFromFile("echo.json")) + conf.Use(configure.NewEnvironment()) } func main() { diff --git a/example/hello.go b/example/hello.go index 2d77ad0..9eb2b5e 100644 --- a/example/hello.go +++ b/example/hello.go @@ -3,17 +3,17 @@ package main import ( "fmt" - "github.com/paked/configeur" + "github.com/paked/configure" ) var ( - conf = configeur.New() + conf = configure.New() name = conf.String("name", "Harrison", "The name you want to greet") ) func init() { - conf.Use(configeur.NewEnvironment()) - conf.Use(configeur.NewFlag()) + conf.Use(configure.NewEnvironment()) + conf.Use(configure.NewFlag()) } func main() { diff --git a/flag.go b/flag.go index 6d75fe0..f80c5c2 100644 --- a/flag.go +++ b/flag.go @@ -1,4 +1,4 @@ -package configeur +package configure import ( "errors" diff --git a/flag_test.go b/flag_test.go index 8db9b21..648c212 100644 --- a/flag_test.go +++ b/flag_test.go @@ -1,4 +1,4 @@ -package configeur +package configure import ( "testing" diff --git a/json.go b/json.go index 29377df..12a61a6 100644 --- a/json.go +++ b/json.go @@ -1,4 +1,4 @@ -package configeur +package configure import ( "encoding/json"