Releases: Attumm/settingo
Releases · Attumm/settingo
Added security theater permissions to GitHub Actions.
"Oh My Docs!" v1.7.0 - Documentation Deep Dive, Badges Added, and Project Refinements
Release Notes for v1.7.0
New Features:
- Implemented support for slice separator
- Added default separator functionality
Documentation:
- Added Golang docstrings for functions, enhancing IDE and LSP support and docs
- Updated README with new information on types and parsed values
- Improved overall project documentation
Testing and Quality Assurance:
- Expanded test coverage, including tests for new slice separator feature
- Added default separator test
CI/CD Improvements:
- Modified GitHub Actions to run tests on every push
- Added CI badge for better visibility of build status
- Renamed GitHub Action for badge consistency
Visual Enhancements:
- Added new badges to the project repository
Added badges and codecov
Added project status badges:
- Go Reference badge for package documentation
- Go Report Card badge for code quality metrics
- Codecov badge for test coverage tracking
Added additional testing
structs with annotated fields
Settingo now allows you to define and pass structs with annotated fields directly, making your configuration cleaner and simpler. With IDE integration from code completion
import (
"fmt"
"github.com/Attumm/settingo/settingo"
"log"
)
type Config struct {
Filename string `settingo:"Path of the filename"`
Storage string `settingo:"Storage type"`
Convert bool `settingo:"Convert mode, will convert data into Convert Storage type"`
ConvertStorage string `settingo:"bytes"`
}
func main() {
config := &Config{
Filename: "~/Downloads/archive/data",
Storage: "csv",
Convert: true,
ConvertStorage: "bytes",
}
settingo.ParseTo(config)
fmt.Println(config.Filename)
fmt.Println(config.Storage)
fmt.Println(config.Convert)
fmt.Println(config.ConvertStorage)
}
./foobar --help
Usage of ./go_quote:
-CONVERT string
Convert mode, will convert data into Convert Storage type (default "true")
-CONVERTSTORAGE string
bytes (default "bytes")
-FILENAME string
Path of the filename (default "~/Downloads/archive/data.csv")
-STORAGE string
Storage type (default "csv")
Added Slice
Added slices
Added Readme changes
v1.4.1 Changed installation to example
settingo module syntax
Before the import contained ".".
The module style is more inline with other go projects.
Added maps
Added maps
New type Bool
Added new type Bool