INNER CODE UNIT · Go
func
bank-vaults/bank-vaults · cmd/template/main.go:33
func (i *arrayFlags) String() string {
return "my string representation"
}
func (i *arrayFlags) Set(value string) error {
*i = append(*i, value)
return nil
}
// renderInlineConfig templates the inline VAULT_LOCAL_CONFIG payload and writes the result
// to filename with the given file mode.
func renderInlineConfig(t *templater.Templater, vaultConfig, filename string, mode os.FileMode) error {
buffer, err := t.EnvTemplate(vaultConfig)
if err != nil {
return fmt.Errorf("executing template: %w", err)
}