carpy

package
v1.3.28 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PackageName   = "carpy"
	InterfaceName = "Copy"
)

Variables

This section is empty.

Functions

func Gen added in v0.1.9

func Gen(base string)

func GetCompositeLitInfo added in v1.3.13

func GetCompositeLitInfo(obj *ast.CompositeLit) *openapi.Field

func GetObject added in v1.3.13

func GetObject(obj *ast.Object) *openapi.Field

func GetTypeName

func GetTypeName(obj any) string

Types

type Carpy added in v0.1.9

type Carpy struct {
	// contains filtered or unexported fields
}

func (*Carpy) Gen added in v0.1.9

func (c *Carpy) Gen(base string)

Gen 生成

type Copy

type Copy interface {
	Copy(to any, from any, opts ...CopyOption) error
}

Copy 用于拷贝的接口 在生成文件中将生成该接口的实现体

type CopyOption added in v1.3.13

type CopyOption func(to any, from any) (dst any, err error)

CopyOption 拷贝类型转换

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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