Popularity
2.5
Declining
Activity
3.6
Stable
34
3
8
Programming language: Go
License: MIT License
Tags:
Utility
Text Processing
xj2go alternatives and similar packages
Based on the "Utility" category.
Alternatively, view xj2go alternatives based on common mentions on social networks and blogs.
-
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
CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
Promo
coderabbit.ai
Do you think we are missing an alternative of xj2go or a related project?
Popular Comparisons
README
xj2go
The goal is to convert xml or json file to go struct file.
Usage
Download and install it:
$ go get -u -v github.com/wk30/xj2go/cmd/...
$ xj [-t json/xml] [-p sample] [-r result] sample.json
Import it in your code:
import "github.com/wk30/xj2go"
Example
Please see [the example file](example/sample.go).
package main
import (
"io/ioutil"
"log"
"github.com/wk30/xj2go"
)
func main() {
xmlfilename := "../testxml/xl/styles.xml"
xj1 := xj2go.New(xmlfilename, "demoxml", "")
xj1.XMLToGo()
b1, err := ioutil.ReadFile(xmlfilename)
if err != nil {
log.Fatal(err)
}
if err := xj2go.XMLBytesToGo("test", "demoxml2", &b1); err != nil {
log.Fatal(err)
}
jsonfilename := "../testjson/githubAPI.json"
xj2 := xj2go.New(jsonfilename, "demojson", "sample")
xj2.JSONToGo()
b2, err := ioutil.ReadFile(jsonfilename)
if err != nil {
log.Fatal(err)
}
if err := xj2go.JSONBytesToGo("test", "demojson2", "github", &b2); err != nil {
log.Fatal(err)
}
}