hanko icon indicating copy to clipboard operation
hanko copied to clipboard

Attempt at #126

Open ryanhaticus opened this issue 2 years ago • 1 comments

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.

ryanhaticus avatar Aug 09 '22 15:08 ryanhaticus

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.

FreddyDevelop avatar Aug 12 '22 09:08 FreddyDevelop

Closing due to inactivity.

like-a-bause avatar Sep 27 '22 09:09 like-a-bause