MCPcopy
hub / github.com/matcornic/hermes / setDefaultEmailValues

Function setDefaultEmailValues

hermes.go:124–138  ·  view source on GitHub ↗
(e *Email)

Source from the content-addressed store, hash-verified

122}
123
124func setDefaultEmailValues(e *Email) error {
125 // Default values of an email
126 defaultEmail := Email{
127 Body: Body{
128 Intros: []string{},
129 Dictionary: []Entry{},
130 Outros: []string{},
131 Signature: "Yours truly",
132 Greeting: "Hi",
133 },
134 }
135 // Merge the given email with default one
136 // Default one overrides all zero values
137 return mergo.Merge(e, defaultEmail)
138}
139
140// default values of the engine
141func setDefaultHermesValues(h *Hermes) error {

Callers 2

generateTemplateMethod · 0.85
TestHermes_DefaultFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestHermes_DefaultFunction · 0.68