parseargs-go alternatives and similar packages
Based on the "Utility" category.
Alternatively, view parseargs-go alternatives based on common mentions on social networks and blogs.
-
Koazee
A StreamLike, Immutable, Lazy Loading and smart Golang Library to deal with slices. -
gotabulate
Gotabulate - Easily pretty-print your tabular data with Go -
strutil-go
Golang metrics for calculating string similarity and other string utility functions -
regroup
Match regex group into go struct using struct tags and automatic parsing -
html2data
Library and cli for extracting data from HTML via CSS selectors -
frontmatter
Go library for detecting and decoding various content front matter formats -
Tagify
Tagify produces a set of tags from a given source. Source can be either an HTML page, a Markdown document or a plain text. Supports English, Russian, Chinese, Hindi, Spanish, Arabic, Japanese, German, Hebrew, French and Korean languages. -
TySug
A project around helping to prevent typing typos. TySug (Typo Suggestions) suggests alternative words with respect to keyboard layouts
Access the most powerful time series database as a service
Do you think we are missing an alternative of parseargs-go or a related project?
README
parseargs-go
This is a port of the parserargs.js project to Go.
What about parsing arguments allowing quotes in them? But beware that this library will not parse flags (-- and -), flags will be returned as simple strings.
Installation
go get -u github.com/txgruppi/parseargs-go
Example
package main
import (
"fmt"
"log"
"github.com/txgruppi/parseargs-go"
)
func main() {
setInRedis := `set name "Put your name here"`
parsed, err := parseargs.Parse(setInRedis)
if err != nil {
log.Fatal(err)
}
fmt.Printf("%#v\n", parsed) // []string{"set", "name", "Put your name here"}
}
Tests
go get -u -t github.com/txgruppi/parseargs-go
cd $GOPATH/src/github.com/txgruppi/parseargs-go
go test ./...
License
MIT
*Note that all licence references and agreements mentioned in the parseargs-go README section above
are relevant to that project's source code only.