go-json2struct

module
v0.3.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 26, 2022 License: MIT

README

go-json2struct

a web tool for converting JSON strings into Go struct

The web application is available at here !!

Example for use as a module

Check pkg.go.dev for examples.

$ go get -u github.com/masakurapa/go-json2struct
package main

import (
	"fmt"

	"github.com/masakurapa/go-json2struct/pkg/j2s"
)

func main() {
	input := `{"title": "j2s"}`
	output, err := j2s.Convert(input)
	if err != nil {
		fmt.Println(err)
		return
	}
	fmt.Println(output)
}

Directories

Path Synopsis
cmd
pkg
j2s

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL