Truncates field values after $ sign
cosmycx opened this issue · 1 comments
cosmycx commented
export MY_TEST='abc$what'
package main
import (
"context"
"fmt"
"log"
"github.com/sethvargo/go-envconfig"
)
type MyConfig struct {
Test string `env:"MY_TEST,required"`
}
func main() {
ctx := context.Background()
var c MyConfig
if err := envconfig.Process(ctx, &c); err != nil {
log.Fatal(err)
} // .if
fmt.Printf("test: %s \n", c.Test)
} // .main
Result -> test: abc
Expected -> test: abc$what
github-actions commented
This issue has been automatically locked since there has not been any
recent activity after it was closed. Please open a new issue for
related bugs.