diff --git a/README.md b/README.md index 313dec1..1734214 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ ![Go version](https://img.shields.io/github/go-mod/go-version/iamando/welog) [![GoDoc](https://godoc.org/github.com/iamando/welog?status.svg)](https://godoc.org/github.com/iamando/welog) -A simple and colourful logger module for golang with timestamp support. +A simple and colorful logger module for golang with timestamp support. ## Install @@ -24,8 +24,8 @@ import ( func ExampleUsage() { - // create a new logger with info level with basic mode or use `welog.Colourful` to use colourful mode - logger := welog.GenerateLogger(Info, welog.Basic) // welog.Colourful + // create a new logger with info level with basic mode or use `welog.Colorful` to use colorful mode + logger := welog.GenerateLogger(Info, welog.Basic) // welog.Colorful // log some messages logger.Error("An error occurred") diff --git a/constants.go b/constants.go index 30bab69..940f46a 100644 --- a/constants.go +++ b/constants.go @@ -8,8 +8,8 @@ const ( ) const ( - Basic LogMode = "basic" - Colourful LogMode = "colorful" + Basic LogMode = "basic" + Colorful LogMode = "colorful" ) const TimestampFormat string = "2006-01-02 15:04:05" diff --git a/docs/_config.yml b/docs/_config.yml index 41d58e5..f41eafc 100644 --- a/docs/_config.yml +++ b/docs/_config.yml @@ -1,3 +1,3 @@ theme: jekyll-theme-cayman title: welog -description: a simple and colourful logger module for golang with timestamp support. +description: a simple and colorful logger module for golang with timestamp support. diff --git a/welog_test.go b/welog_test.go index 686aa50..a6d5eef 100644 --- a/welog_test.go +++ b/welog_test.go @@ -40,10 +40,10 @@ func TestBasicMode(t *testing.T) { } } -func TestColourfulMode(t *testing.T) { +func TestColorfulMode(t *testing.T) { var buf bytes.Buffer - logger := GenerateLogger(Info, Colourful) + logger := GenerateLogger(Info, Colorful) logger.SetOutput(&buf)