db2struct

package
v0.0.0-...-ccd8cf7 Latest Latest
Warning

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

Go to latest
Published: May 15, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(columnTypes map[string]map[string]string, columnSorted []string, tableName string, structName string, pkgName string, jsonAnnotation bool, gormAnnotation bool, expectedExtends string) ([]byte, error)

func GenerateReqAndRespTypes

func GenerateReqAndRespTypes(obj map[string]map[string]string, columnSorted []string, jsonTag bool, formTag bool) string

func GetColumnsFromMysqlTable

func GetColumnsFromMysqlTable(dsn, table string) (*map[string]map[string]string, []string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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