Refactor message.Mode
select #32
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
sollte geschrieben werden können als
duration = message.Settings.${message.Mode}
Möglicherweise geht das in Go nicht, die obige Lösung ist aber sehr unschön.
Relevant Files:
Refactor message.Mode selectto Refactormessage.Mode
selecthttps://stackoverflow.com/a/49428647