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
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I want to read IntSlice in .envFile
{9, 9, 8, 8, 7, 7}
so I typed in file space-seperated and comma-seperated like this, but it doesn't work.
TEST_VIPER_CONFIG_INTSLICE_VALUE1=9 9 8 8 7 7
TEST_VIPER_CONFIG_INTSLICE_VALUE2=9,9,8,8,7,7
GetIntSlice returns empty slice in these cases.
How can I read IntSlice from envFile?
and can I use GetStringSlice, GetStringMap, GetStringMapString, GetStringMapStringSlice in envFile??
I already know GetStringSlice uses space-seperated.
Plz let me know the envFile examples.
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions