diff --git a/README.md b/README.md index ac872dd..7405559 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ # env -[![Build Status](https://img.shields.io/github/actions/workflow/status/caarlos0/env/build.yml?branch=main&style=for-the-badge)](https://github.com/caarlos0/env/actions?workflow=build) +[![Build Status](https://img.shields.io/github/actions/workflow/status/caarlos0/env/build.yml?branch=main&style=for-the-badge)](https://github.com/NeticShard/env/actions?workflow=build) [![Coverage Status](https://img.shields.io/codecov/c/gh/caarlos0/env.svg?logo=codecov&style=for-the-badge)](https://codecov.io/gh/caarlos0/env) -[![](http://img.shields.io/badge/godoc-reference-5272B4.svg?style=for-the-badge)](https://pkg.go.dev/github.com/caarlos0/env/v11) +[![](http://img.shields.io/badge/godoc-reference-5272B4.svg?style=for-the-badge)](https://pkg.go.dev/github.com/NeticShard/env/v11) A simple and zero-dependencies library to parse environment variables into `struct`s. @@ -27,7 +27,7 @@ updated to take that into account. Get the module with: ```sh -go get github.com/caarlos0/env/v11 +go get github.com/NeticShard/env/v11 ``` The usage looks like this: @@ -39,7 +39,7 @@ import ( "fmt" "time" - "github.com/caarlos0/env/v11" + "github.com/NeticShard/env/v11" ) type config struct { @@ -139,7 +139,7 @@ field. If you add a custom parser for, say `Foo`, it will also be used to parse `*Foo` and `[]Foo` types. -Check the examples in the [go doc](http://pkg.go.dev/github.com/caarlos0/env/v11) +Check the examples in the [go doc](http://pkg.go.dev/github.com/NeticShard/env/v11) for more info. ### A note about `TextUnmarshaler` and `time.Time` @@ -205,7 +205,7 @@ This also works with `envDefault`: ```go import ( "fmt" - "github.com/caarlos0/env/v11" + "github.com/NeticShard/env/v11" ) type config struct { @@ -271,7 +271,7 @@ import ( "fmt" "time" - "github.com/caarlos0/env/v11" + "github.com/NeticShard/env/v11" ) type config struct { @@ -320,7 +320,7 @@ import ( "fmt" "log" - "github.com/caarlos0/env/v11" + "github.com/NeticShard/env/v11" ) type Config struct { @@ -360,7 +360,7 @@ import ( "fmt" "log" - "github.com/caarlos0/env/v11" + "github.com/NeticShard/env/v11" ) type Config struct { @@ -397,7 +397,7 @@ import ( "fmt" "log" - "github.com/caarlos0/env/v11" + "github.com/NeticShard/env/v11" ) type Config struct { @@ -431,7 +431,7 @@ import ( "fmt" "log" - "github.com/caarlos0/env/v11" + "github.com/NeticShard/env/v11" ) type Config struct { @@ -480,7 +480,7 @@ import ( "fmt" "log" - "github.com/caarlos0/env/v11" + "github.com/NeticShard/env/v11" ) type Config struct { @@ -520,7 +520,7 @@ import ( "fmt" "log" - "github.com/caarlos0/env/v11" + "github.com/NeticShard/env/v11" ) type Config struct { @@ -556,7 +556,7 @@ import ( "fmt" "log" - "github.com/caarlos0/env/v11" + "github.com/NeticShard/env/v11" ) type Config struct { @@ -589,7 +589,7 @@ import ( "fmt" "log" - "github.com/caarlos0/env/v11" + "github.com/NeticShard/env/v11" ) type Config struct { diff --git a/error.go b/error.go index da1da56..9ed81fb 100644 --- a/error.go +++ b/error.go @@ -80,8 +80,8 @@ func (e NotStructPtrError) Error() string { } // This error occurs when there is no parser provided for given type -// Supported types and defaults: https://github.com/caarlos0/env#supported-types-and-defaults -// How to create a custom parser: https://github.com/caarlos0/env#custom-parser-funcs +// Supported types and defaults: https://github.com/NeticShard/env#supported-types-and-defaults +// How to create a custom parser: https://github.com/NeticShard/env#custom-parser-funcs type NoParserError struct { Name string Type reflect.Type @@ -97,7 +97,7 @@ func (e NoParserError) Error() string { // This error occurs when the given tag is not supported // In-built supported tags: "", "file", "required", "unset", "notEmpty", "expand", "envDefault", "envSeparator" -// How to create a custom tag: https://github.com/caarlos0/env#changing-default-tag-name +// How to create a custom tag: https://github.com/NeticShard/env#changing-default-tag-name type NoSupportedTagOptionError struct { Tag string } @@ -111,7 +111,7 @@ func (e NoSupportedTagOptionError) Error() string { } // This error occurs when the required variable is not set -// Read about required fields: https://github.com/caarlos0/env#required-fields +// Read about required fields: https://github.com/NeticShard/env#required-fields type EnvVarIsNotSetError struct { Key string } @@ -125,7 +125,7 @@ func (e EnvVarIsNotSetError) Error() string { } // This error occurs when the variable which must be not empty is existing but has an empty value -// Read about not empty fields: https://github.com/caarlos0/env#not-empty-fields +// Read about not empty fields: https://github.com/NeticShard/env#not-empty-fields type EmptyEnvVarError struct { Key string } @@ -139,7 +139,7 @@ func (e EmptyEnvVarError) Error() string { } // This error occurs when it's impossible to load the value from the file -// Read about From file feature: https://github.com/caarlos0/env#from-file +// Read about From file feature: https://github.com/NeticShard/env#from-file type LoadFileContentError struct { Filename string Key string @@ -155,8 +155,8 @@ func (e LoadFileContentError) Error() string { } // This error occurs when it's impossible to convert value using given parser -// Supported types and defaults: https://github.com/caarlos0/env#supported-types-and-defaults -// How to create a custom parser: https://github.com/caarlos0/env#custom-parser-funcs +// Supported types and defaults: https://github.com/NeticShard/env#supported-types-and-defaults +// How to create a custom parser: https://github.com/NeticShard/env#custom-parser-funcs type ParseValueError struct { Msg string Err error diff --git a/go.mod b/go.mod index 135b454..ef43521 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,3 @@ -module github.com/caarlos0/env/v11 +module github.com/NeticShard/env go 1.18