https://github.com/teonet-go/conf
Config helper go package
https://github.com/teonet-go/conf
config fyne go golang gui json
Last synced: 2 months ago
JSON representation
Config helper go package
- Host: GitHub
- URL: https://github.com/teonet-go/conf
- Owner: teonet-go
- License: bsd-3-clause
- Created: 2024-01-15T16:16:54.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-29T14:07:34.000Z (over 2 years ago)
- Last Synced: 2025-08-22T17:49:44.521Z (10 months ago)
- Topics: config, fyne, go, golang, gui, json
- Language: Go
- Homepage:
- Size: 138 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Config helper go package
This package is a helper for processing json configurations files.
It can unmarshal json to a go struct or to the universal `map[string]any` and prepare it data to show in the terminal or gui form.
[](https://godoc.org/github.com/teonet-go/conf/)
[](https://goreportcard.com/report/github.com/teonet-go/conf)
## How to use
The is an example of usage which read config file and show it in the fine-io gui form: [cmd/conf/main.go](cmd/conf/main.go)
The conf package helps unmarshal json to go struct and prepare it data to show in the gui form. This autmatically created form has names of fields and entries to edit values and validator which check fields type.
Current package version can automatically process simple string and number types and special Email, Password, Multiline and RadioGroup types from input json.
Config package can also unmarshal json to the `map[string]any` without nesessary to create a struct with fields type.

## How to install
The package can be installed using:
```shell
go get github.com/teonet-go/conf
```
The packages example can be installed with:
```shell
go install github.com/teonet-go/conf/cmd/conf@latest
```
## License
[BSD](LICENSE)