Noob Parser is a tools to parser Primitive types, such as:
- String masking
- Cast
String
toArray of String
- Cast
String
toArray of Int
- Cast
String
toBool
& Vice Versa - Cast
String
toInt
& Vice Versa - Cast
Int
toBool
& Vice Versa - Cast
[]int32
to[]int
& Vice Versa - Cast
[]int64
to[]int
& Vice Versa
To install this package, you need to install Go (version 1.17+ is required) & initiate your Go workspace first.
- After you initiate your workspace then you can install this package with below command.
go get -u github.com/alfarih31/nb-go-parser
- Import it in your code
import "github.com/alfarih31/nb-go-parser"
See the test:
- Alfarih Faza [email protected]
This project is licensed under the - see the LICENSE.md file for details