(options any, name string)
| 370 | } |
| 371 | |
| 372 | func EncodeOptions(options any, name string) map[string]string { |
| 373 | raw, _ := json.Marshal(options) |
| 374 | return map[string]string{ |
| 375 | name: string(raw), |
| 376 | } |
| 377 | } |
| 378 | |
| 379 | func DecodeOptionsFromEnv(name string, into any) (bool, error) { |
| 380 | raw := os.Getenv(name) |