We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have a base64 string that I put into the env variable The problem is when I try to read it - it's corrupted. Here's a test for the code in master
type base64Test struct { Base64 string `envconfig:"default=LS0tLS1CRUdJTiBQR1AgUFJJVkFURSBLRVkgQkxPQ0stLS0tLQoKbFFXR0JGL0dHWFFCREFDaWR5aCt3OFd1RzhIWkZWUkRZWHRUT3NGdzZ1bzJtMzhzYi9VUEdVQ25sVWlNUVNacgpjQ1pWQVBxcFQrQmdzS1Zyem5kK1pSaVd5aXQ1bkpsT0ZncGE1YUxMTDVsK2Q4Uzh6aWlzSDRSVUN5cVJqYWhVCmpLd0g0NE5mb1hwRkh4d3U3UDVMbjNMVGJraG81bHN5KytUVFpJbWZSQld5bXNUazBidFRuQ01MZ0xaZ0dReGYKcnRhOFhLY0ZwSm1WK3hWSHV3MnJXdWJxdFYrbk1oM2VRQTlYTTNFVlpGU0pZQjlKM0RWN2xwTURXcmN6b09aWApvaVNmbW45eHNXRFh2MjduSldoc2drc1I4T1h3S0xvMS9kQmFFNklMODR1MjZZT0NCZzhwQUdBeEJwSVQyVmRVCkxBdktjcitHWHdDV2VTTHJRNXkrVjltUThCTjZRSU9xVUp3Q3lUV3RWbWRpcTVWOUZIMm9RQlZPZzNQTUFWV3AKc1U5b2V1MWJkZlBwdDBrN0RDMlY2NUdSTHhZRGl1MTJhaVlIN0JCOTlET2cycTVlMEJteHBybUlYY09CVGMxawpDUXlpcGp6MWkyN3lLSDFNL1BVRHp1UHlobGtaVTd1dHFUK3I3VGlDSE9LM0I3TzNZeFJncGM2WkhpeFVmclRVCjEwTW9EVVdpR2s0cE1lVUFFUUVBQWY0SEF3S05nVU9zNzV4Tk5PV0QxdFlpd3luZFdmU3ZhczVPcWFHdlFnUTMKdmIxb3pIaitR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UUyQUNld3JzdHU1bWsxM0xkKzI3OURCNlNyZkp1QzIrQUdIenlwcQpLWkFTcmxkU0ZQcGRuQXUrNjdIK0hkM3BuS3poL0pQQUJJVUMrblA3N0wvcW8xNlVYbUZJc1JPVllCK2pSV21zCjVDcVBSNzdNL0E1M3JHK25GNmFLRWtlemplMEcyMHVSZG1FdURoak0wb1c5S2lMU1MrT0k5SHA0WDlDMjArclYKK3FCWnlxZzQvUmprcFlZWCtaZWMKPUorQ2YKLS0tLS1FTkQgUEdQIFBSSVZBVEUgS0VZIEJMT0NLLS0tLS0==` os.Clearenv() err := Process("", &s) if err != nil { t.Error("failure while reading base64 string", err) } if s.Base64 != base64 { t.Error("base64 codes don't match") } }
The text was updated successfully, but these errors were encountered:
Your struct tag is wrong. As per the readme, it should be default:"LS0tLS1..."
default:"LS0tLS1..."
Sorry, something went wrong.
No branches or pull requests
I have a base64 string that I put into the env variable
The problem is when I try to read it - it's corrupted. Here's a test for the code in master
The text was updated successfully, but these errors were encountered: