go2struct-tool

command module
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

README

go2struct-tool

Use the command to convert arbitrary formats to Go Struct (including json, toml, yaml, etc.)

Installation

Run the following command under your project:

go get -u github.com/NICEXAI/go2struct-tool

Basic Usage
convert a yml file to a go struct

go2struct-tool -i ./setting_default.yml -o config.go

auto-conversion

If you want to enable automatic conversion, you can use the -w flag.

go2struct-tool -w -i ./setting_default.yml -o config.go

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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