split the env tag's key into the expected key and desired option, if any.
(key string)
| 654 | |
| 655 | // split the env tag's key into the expected key and desired option, if any. |
| 656 | func parseKeyForOption(key string) (string, []string) { |
| 657 | opts := strings.Split(key, ",") |
| 658 | return opts[0], opts[1:] |
| 659 | } |
| 660 | |
| 661 | func getFromFile(filename string) (value string, err error) { |
| 662 | b, err := os.ReadFile(filename) |