cmd

package
v0.0.0-...-192f8a9 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2021 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

Types

type Another

type Another struct {
	ID   string `gorm:"primary_key"`
	Name string
}

type Struct

type Struct struct {
	Name            string
	StructMetaSlice []StructMeta
}

func (Struct) TableName

func (a Struct) TableName() string

type StructMeta

type StructMeta struct {
	Field          string
	Type           string
	TypeExampleVal interface{}
	Tag            string
}

type User

type User struct {
	ID   string `gorm:"primary_key"`
	Name string
}

Jump to

Keyboard shortcuts

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