go2struct

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

README

go2struct

Convert arbitrary formats to Go Struct (including json, toml, yaml, etc.)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JSON2Struct

func JSON2Struct(data []byte) (string, error)

JSON2Struct convert json to struct

func Map2Struct

func Map2Struct(m map[string]interface{}) string

Map2Struct convert map to struct

func YAML2Struct

func YAML2Struct(data []byte) (string, error)

YAML2Struct convert yaml to struct

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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