The highest tagged major version is
v2 .
Discover Packages
github.com/mirkobrombin/go-cli-builder
examples
v1
core
package
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: Mar 16, 2025
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
GetDataPath returns the path of the JSON storage file.
SaveData saves the data to the JSON file.
If there is an error marshalling or writing the file, it returns an error.
type Data struct {
Items []string `json:"items"`
}
Data represents the structure of the data saved in the JSON file.
LoadData loads the data from the JSON file.
If the file does not exist, it returns empty data without an error.
If there is an error reading or unmarshalling the file, it returns an error.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.