hanko
hanko copied to clipboard
Attempt at #126
Hi there, Team Hanko!
Context: For context, before you read the code, I am by no means a GO developer. In fact, today is the first day I have touched the language at all. The initiative here is awesome and I wanted to try my hand at contributing to what seems to be an already awesome product.
Intention:
In this fix, I am attempting to resolve #126 by iterating over the environment variables and replacing .
characters with _
characters from back to front until there isn't an error or until an index of .
no longer exists.
Conclusion: I have no idea of this will work, nor am I sure if the code I wrote even compiles - but nonetheless I'm throwing my wrench into a world of hammers.
Thank you for your contribution. Unfortunately this solution does not work. The problem with it is, that koanf does not return an error if keys can't be mapped. So the for
loop will always only run once.
Closing due to inactivity.