api

package
v0.0.0-...-d4de039 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2023 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MyStruct = func() {

}

Functions

func CacheDemo

func CacheDemo()

func ConfigorDemo

func ConfigorDemo()

func DecimalDemo

func DecimalDemo()

func DigDemo

func DigDemo()

依赖注入dig

func ErrorsDemo

func ErrorsDemo()

go get github.com/pkg/errors

func ExcelDemo

func ExcelDemo()

func GetDbConnection

func GetDbConnection() *gorm.DB

func GinDemo

func GinDemo()

func GormDemoMain

func GormDemoMain()

func NowDemo

func NowDemo()

func RestyDemo

func RestyDemo()

Types

type A

type A struct{}

func NewA

func NewA(a B) *A

type B

type B struct{}

func NewB

func NewB() *B

type C

type C struct{}

func NewC

func NewC() *C

type ConfigBean

type ConfigBean struct {
	Parent   string
	Children []struct {
		Name  string
		Index int
	}
}

type D

type D struct{}

func NewD

func NewD() *D

type GoPerson

type GoPerson struct {
	ID             int       `gorm:"primarykey;column:id"`
	FirstName      string    `gorm:"column:first_name"`
	BirthDate      time.Time `gorm:"column:birth_date"`
	InsertDateTime time.Time `gorm:"column:insert_date"`
	CreateTime     time.Time `gorm:"column:create_timestamp"`
}

func (GoPerson) TableName

func (receiver GoPerson) TableName() string

Jump to

Keyboard shortcuts

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