package
Version:
v4.1.0+incompatible
Opens a new window with list of versions in this module.
Published: Aug 17, 2018
License: Apache-2.0
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
AppDir returns the absolute path to the default BitBox desktop app directory
in the user standard config location.
File models a config file in the application's directory.
Callers can use AppDir function to obtain the default app config dir.
NewFile creates a new config file with the given name in a directory dir.
Exists checks whether the file exists with suitable permissions as a file and not as a directory.
Path returns the absolute path to the config file.
func (file *File) ReadJSON(object interface{}) error
ReadJSON reads the config file as JSON to the given object. Make sure the config file exists!
func (file *File) WriteJSON(object interface{}) error
WriteJSON writes the given object as JSON to the config file.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.