diff --git a/LICENSE b/LICENSE index 0110929..4ea9178 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2021 Maragu ApS +Copyright (c) Maragu ApS Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/Makefile b/Makefile index 503ba33..51f945a 100644 --- a/Makefile +++ b/Makefile @@ -1,11 +1,11 @@ -.PHONY: cover lint test - +.PHONY: cover cover: go tool cover -html=cover.out +.PHONY: lint lint: golangci-lint run +.PHONY: test test: go test -coverprofile=cover.out -shuffle on ./... - diff --git a/README.md b/README.md index 61fe958..df90136 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,7 @@ # env -[![GoDoc](https://godoc.org/github.com/maragudk/env?status.svg)](https://godoc.org/github.com/maragudk/env) +[![GoDoc](https://pkg.go.dev/badge/maragu.dev/env)](https://pkg.go.dev/maragu.dev/env) [![Go](https://github.com/maragudk/env/actions/workflows/ci.yml/badge.svg)](https://github.com/maragudk/env/actions/workflows/ci.yml) -[![codecov](https://codecov.io/gh/maragudk/env/branch/main/graph/badge.svg)](https://codecov.io/gh/maragudk/env) A small utility package to load different types of environment variables. @@ -11,7 +10,7 @@ Made in 🇩🇰 by [maragu](https://www.maragu.dk), maker of [online Go courses ## Usage ```shell -go get github.com/maragudk/env +go get maragu.dev/env ``` ```go @@ -21,7 +20,7 @@ import ( "fmt" "time" - "github.com/maragudk/env" + "maragu.dev/env" ) func main() { diff --git a/env_test.go b/env_test.go index 6f04145..c0e04c8 100644 --- a/env_test.go +++ b/env_test.go @@ -5,9 +5,9 @@ import ( "testing" "time" - "github.com/maragudk/is" + "maragu.dev/is" - "github.com/maragudk/env" + "maragu.dev/env" ) func TestGetStringOrDefault(t *testing.T) { diff --git a/go.mod b/go.mod index 566f286..bf600dc 100644 --- a/go.mod +++ b/go.mod @@ -1,5 +1,5 @@ -module github.com/maragudk/env +module maragu.dev/env go 1.18 -require github.com/maragudk/is v0.1.0 +require maragu.dev/is v0.2.0 diff --git a/go.sum b/go.sum index 9846cae..2938f56 100644 --- a/go.sum +++ b/go.sum @@ -1,2 +1,2 @@ -github.com/maragudk/is v0.1.0 h1:obq9anZNmOYcaNbeT0LMyjIexdNeYTw/TLAPD/BnZHA= -github.com/maragudk/is v0.1.0/go.mod h1:W/r6+TpnISu+a88OLXQy5JQGCOhXQXXLD2e5b4xMn5c= +maragu.dev/is v0.2.0 h1:poeuVEA5GG3vrDpGmzo2KjWtIMZmqUyvGnOB0/pemig= +maragu.dev/is v0.2.0/go.mod h1:bviaM5S0fBshCw7wuumFGTju/izopZ/Yvq4g7Klc7y8=