diff --git a/aconfigdotenv/dotenv_test.go b/aconfigdotenv/dotenv_test.go index 5d99017..ee0baff 100644 --- a/aconfigdotenv/dotenv_test.go +++ b/aconfigdotenv/dotenv_test.go @@ -87,6 +87,7 @@ func TestDotEnv(t *testing.T) { M: "n", }, MI: "q,w", + ML: "this\nis\na multiline\n", } if got := cfg; !reflect.DeepEqual(want, got) { @@ -127,6 +128,7 @@ type structConfig struct { AA structA `env:"A"` StructM MI interface{} `env:"MI"` + ML string `env:"ML"` } type structY struct { @@ -174,4 +176,9 @@ A_B_D=x,y,z M=n MI=q,w + +ML='this +is +a multiline +' ` diff --git a/aconfigdotenv/go.mod b/aconfigdotenv/go.mod index 85bacba..fafcc6a 100644 --- a/aconfigdotenv/go.mod +++ b/aconfigdotenv/go.mod @@ -3,6 +3,6 @@ module github.com/cristalhq/aconfig/aconfigdotenv go 1.16 require ( - github.com/cristalhq/aconfig v0.17.0 - github.com/joho/godotenv v1.4.0 + github.com/cristalhq/aconfig v0.18.7 + github.com/joho/godotenv v1.5.1 ) diff --git a/aconfigdotenv/go.sum b/aconfigdotenv/go.sum index b56b5ab..211f2f2 100644 --- a/aconfigdotenv/go.sum +++ b/aconfigdotenv/go.sum @@ -1,4 +1,10 @@ github.com/cristalhq/aconfig v0.17.0 h1:VYqg0YOM5yUEx0KH/VwUYF2e/PNI7dcUE66y+xEx73s= github.com/cristalhq/aconfig v0.17.0/go.mod h1:NXaRp+1e6bkO4dJn+wZ71xyaihMDYPtCSvEhMTm/H3E= +github.com/cristalhq/aconfig v0.18.7 h1:ZvgaiSz7D3++TrXN9DrTSWA71eFuig0HhBY32nblLOk= +github.com/cristalhq/aconfig v0.18.7/go.mod h1:9ogrGEt9yU5V4pif/ThkVUfhj8JkdV+iDeahZGgfnDU= github.com/joho/godotenv v1.4.0 h1:3l4+N6zfMWnkbPEXKng2o2/MR5mSwTrBih4ZEkkz1lg= github.com/joho/godotenv v1.4.0/go.mod h1:f4LDr5Voq0i2e/R5DDNOoa2zzDfwtkZa6DnEwAbqwq4= +github.com/joho/godotenv v1.5.1 h1:7eLL/+HRGLY0ldzfGMeQkb7vMd0as4CfYvUVzLqw0N0= +github.com/joho/godotenv v1.5.1/go.mod h1:f4LDr5Voq0i2e/R5DDNOoa2zzDfwtkZa6DnEwAbqwq4= +github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyuac5Z2hdY= +github.com/mitchellh/mapstructure v1.5.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo=