You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm interested in using env.Marshal() to facilitate logging the environment variables that are set in build configuration for several Paketo Buildpacks.
We'd like to use the default= tag on some of our configuration struct fields. But when I iterate over the output of env.Marshal(&myStruct) to log the values of the environment variables, I see that the tags default=* are included as keys in the EnvSet.
See this Go playground for an example of what I mean.
The text was updated successfully, but these errors were encountered:
fg-j
changed the title
Marshal() includes "default-" tags in EnvSet outputMarshal() includes "default=" tags in EnvSet output
Jul 29, 2022
I'm interested in using
env.Marshal()
to facilitate logging the environment variables that are set in build configuration for several Paketo Buildpacks.We'd like to use the
default=
tag on some of our configuration struct fields. But when I iterate over the output ofenv.Marshal(&myStruct)
to log the values of the environment variables, I see that the tagsdefault=*
are included as keys in the EnvSet.See this Go playground for an example of what I mean.
The text was updated successfully, but these errors were encountered: