2
2
3
3
[ ![ 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 )
4
4
[ ![ Coverage Status] ( https://img.shields.io/codecov/c/gh/caarlos0/env.svg?logo=codecov&style=for-the-badge )] ( https://codecov.io/gh/caarlos0/env )
5
- [ ![ ] ( http://img.shields.io/badge/godoc-reference-5272B4.svg?style=for-the-badge )] ( https://pkg.go.dev/github.com/caarlos0/env/v10 )
5
+ [ ![ ] ( http://img.shields.io/badge/godoc-reference-5272B4.svg?style=for-the-badge )] ( https://pkg.go.dev/github.com/caarlos0/env/v11 )
6
6
7
7
A simple and zero-dependencies library to parse environment variables into
8
8
` struct ` s.
@@ -24,7 +24,7 @@ A simple and zero-dependencies library to parse environment variables into
24
24
Get the module with:
25
25
26
26
``` sh
27
- go get github.com/caarlos0/env/v10
27
+ go get github.com/caarlos0/env/v11
28
28
```
29
29
30
30
The usage looks like this:
@@ -36,7 +36,7 @@ import (
36
36
" fmt"
37
37
" time"
38
38
39
- " github.com/caarlos0/env/v10 "
39
+ " github.com/caarlos0/env/v11 "
40
40
)
41
41
42
42
type config struct {
@@ -130,7 +130,7 @@ field.
130
130
If you add a custom parser for, say ` Foo ` , it will also be used to parse
131
131
` *Foo ` and ` []Foo ` types.
132
132
133
- Check the examples in the [ go doc] ( http://pkg.go.dev/github.com/caarlos0/env/v10 )
133
+ Check the examples in the [ go doc] ( http://pkg.go.dev/github.com/caarlos0/env/v11 )
134
134
for more info.
135
135
136
136
### A note about ` TextUnmarshaler ` and ` time.Time `
@@ -196,7 +196,7 @@ This also works with `envDefault`:
196
196
``` go
197
197
import (
198
198
" fmt"
199
- " github.com/caarlos0/env/v10 "
199
+ " github.com/caarlos0/env/v11 "
200
200
)
201
201
202
202
type config struct {
@@ -262,7 +262,7 @@ import (
262
262
" fmt"
263
263
" time"
264
264
265
- " github.com/caarlos0/env/v10 "
265
+ " github.com/caarlos0/env/v11 "
266
266
)
267
267
268
268
type config struct {
@@ -310,7 +310,7 @@ import (
310
310
" fmt"
311
311
" log"
312
312
313
- " github.com/caarlos0/env/v10 "
313
+ " github.com/caarlos0/env/v11 "
314
314
)
315
315
316
316
type Config struct {
@@ -350,7 +350,7 @@ import (
350
350
" fmt"
351
351
" log"
352
352
353
- " github.com/caarlos0/env/v10 "
353
+ " github.com/caarlos0/env/v11 "
354
354
)
355
355
356
356
type Config struct {
@@ -387,7 +387,7 @@ import (
387
387
" fmt"
388
388
" log"
389
389
390
- " github.com/caarlos0/env/v10 "
390
+ " github.com/caarlos0/env/v11 "
391
391
)
392
392
393
393
type Config struct {
@@ -421,7 +421,7 @@ import (
421
421
" fmt"
422
422
" log"
423
423
424
- " github.com/caarlos0/env/v10 "
424
+ " github.com/caarlos0/env/v11 "
425
425
)
426
426
427
427
type Config struct {
@@ -470,7 +470,7 @@ import (
470
470
" fmt"
471
471
" log"
472
472
473
- " github.com/caarlos0/env/v10 "
473
+ " github.com/caarlos0/env/v11 "
474
474
)
475
475
476
476
type Config struct {
@@ -510,7 +510,7 @@ import (
510
510
" fmt"
511
511
" log"
512
512
513
- " github.com/caarlos0/env/v10 "
513
+ " github.com/caarlos0/env/v11 "
514
514
)
515
515
516
516
type Config struct {
@@ -546,7 +546,7 @@ import (
546
546
" fmt"
547
547
" log"
548
548
549
- " github.com/caarlos0/env/v10 "
549
+ " github.com/caarlos0/env/v11 "
550
550
)
551
551
552
552
type Config struct {
@@ -579,7 +579,7 @@ import (
579
579
" fmt"
580
580
" log"
581
581
582
- " github.com/caarlos0/env/v10 "
582
+ " github.com/caarlos0/env/v11 "
583
583
)
584
584
585
585
type Config struct {
0 commit comments