Skip to content

Commit

Permalink
Move module to maragu.dev/env (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
markuswustenberg authored Sep 10, 2024
1 parent 7b1243c commit 8609fcc
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 14 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -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
Expand Down
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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 ./...

7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -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.

Expand All @@ -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
Expand All @@ -21,7 +20,7 @@ import (
"fmt"
"time"

"github.com/maragudk/env"
"maragu.dev/env"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions env_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -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
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -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=

0 comments on commit 8609fcc

Please sign in to comment.