tools

package module
v0.0.0-...-dc490c5 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2017 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

produce struct tag code for object

Example:

type MyStruct struct {
	Name      string
	MaxHeight int
}

var s MyStruct

fmt.Prinln( tool.ProduceStructTag(s, "json"))

type MyStruct struct {
	Name      string `json:"name"`
	MaxHeight int    `json:"max_height"`
}

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProduceStructTag

func ProduceStructTag(obj interface{}, tag string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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