MCPcopy Index your code
hub / github.com/writefreely/writefreely / SaveConfig

Method SaveConfig

app.go:158–160  ·  view source on GitHub ↗

SaveConfig saves the given Config to disk -- namely, to the App's cfgFile.

(c *config.Config)

Source from the content-addressed store, hash-verified

156
157// SaveConfig saves the given Config to disk -- namely, to the App's cfgFile.
158func (app *App) SaveConfig(c *config.Config) error {
159 return config.Save(c, app.cfgFile)
160}
161
162// LoadKeys reads all needed keys from disk into the App. In order to use the
163// configured `Server.KeysParentDir`, you must call initKeyPaths(App) before

Callers

nothing calls this directly

Calls 1

SaveFunction · 0.92

Tested by

no test coverage detected