Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alfarih31/nb-go-parser
Noob Go Parser (nb-go-parser) is a tools to parse primitive types in Go
https://github.com/alfarih31/nb-go-parser
go golang parser primitive-types
Last synced: 8 days ago
JSON representation
Noob Go Parser (nb-go-parser) is a tools to parse primitive types in Go
- Host: GitHub
- URL: https://github.com/alfarih31/nb-go-parser
- Owner: alfarih31
- License: mit
- Created: 2021-12-16T00:03:16.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-10-26T01:49:22.000Z (about 2 years ago)
- Last Synced: 2024-05-16T23:55:19.640Z (6 months ago)
- Topics: go, golang, parser, primitive-types
- Language: Go
- Homepage:
- Size: 14.6 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Noob-Parser
[![Go Reference](https://pkg.go.dev/badge/github.com/alfarih31/nb-go-parser.svg)](https://pkg.go.dev/github.com/alfarih31/nb-go-parser)
![GitHub go.mod Go version (subdirectory of monorepo)](https://img.shields.io/github/go-mod/go-version/alfarih31/nb-go-parser?style=flat-square)
![GitHub release (latest by date)](https://img.shields.io/github/v/release/alfarih31/nb-go-parser?style=flat-square)Noob Parser is a tools to parser Primitive types, such as:
- String masking
- Cast `String` to `Array of String`
- Cast `String` to `Array of Int`
- Cast `String` to `Bool` & Vice Versa
- Cast `String` to `Int` & Vice Versa
- Cast `Int` to `Bool` & Vice Versa
- Cast `[]int32` to `[]int` & Vice Versa
- Cast `[]int64` to `[]int` & Vice Versa## Contents
- [Noob-Parser](#Noob-Parser)
- [Installation](#Installation)
- [Quick Start & Usage](#Quick)## Installation
To install this package, you need to install Go (**version 1.17+ is required**) & initiate your Go workspace first.
1. After you initiate your workspace then you can install this package with below command.
```shell
go get -u github.com/alfarih31/nb-go-parser
```2. Import it in your code
```go
import "github.com/alfarih31/nb-go-parser"
```## Quick Start & Usage
See the test:
- [string_test.go](string_test.go)
- []## Contributors ##
- Alfarih Faza
## License
This project is licensed under the - see the [LICENSE.md](LICENSE.md) file for details