type settings … type namedConfig … // settingsFileName returns the name of the file where settings should be saved. func settingsFileName() (string, error) { … } // readSettings reads settings from fname. func readSettings(fname string) (*settings, error) { … } // writeSettings saves settings to fname. func writeSettings(fname string, settings *settings) error { … } type configMenuEntry … // configMenu returns a list of items to add to a menu in the web UI. func configMenu(fname string, u url.URL) []configMenuEntry { … } // editSettings edits settings by applying fn to them. func editSettings(fname string, fn func(s *settings) error) error { … } // setConfig saves the config specified in request to fname. func setConfig(fname string, request url.URL) error { … } // removeConfig removes config from fname. func removeConfig(fname, config string) error { … }