parts

package
v0.9.5 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Com1

type Com1 struct {
	Field1 []any //starter:inject(".")

	Field2 []sort.Interface    //starter:inject(".")
	Field3 sort.Interface      //starter:inject("#")
	Field4 *strings.Builder    //starter:inject("#")
	Field5 *bytes.Buffer       //starter:inject("#")
	Field6 io.Reader           //starter:inject("#")
	Field7 application.Context //starter:inject("context")
	// contains filtered or unexported fields
}

Com1 is a demo component for starter configen

func (*Com1) Len

func (inst *Com1) Len() int

func (*Com1) Less

func (inst *Com1) Less(a, b int) bool

func (*Com1) Swap

func (inst *Com1) Swap(a, b int)

type Com2

type Com2 struct {
	F11 int   //starter:inject("${a.b.c.d}")
	F12 int8  //starter:inject("${a.b.c.d}")
	F13 int16 //starter:inject("${a.b.c.d}")
	F14 int32 //starter:inject("${a.b.c.d}")
	F15 int64 //starter:inject("${a.b.c.d}")

	F21 uint   //starter:inject("${a.b.c.d}")
	F22 uint8  //starter:inject("${a.b.c.d}")
	F23 uint16 //starter:inject("${a.b.c.d}")
	F24 uint32 //starter:inject("${a.b.c.d}")
	F25 uint64 //starter:inject("${a.b.c.d}")

	F31 string  //starter:inject("${a.b.c.d}")
	F32 byte    //starter:inject("${a.b.c.d}")
	F33 bool    //starter:inject("${a.b.c.d}")
	F34 rune    //starter:inject("${a.b.c.d}")
	F35 float32 //starter:inject("${a.b.c.d}")
	F36 float64 //starter:inject("${a.b.c.d}")
	F37 any     //starter:inject("${a.b.c.d}")
	// contains filtered or unexported fields
}

Com2 ...

func (*Com2) Read

func (inst *Com2) Read(data []byte) (int, error)

func (*Com2) Write

func (inst *Com2) Write(data []byte) (int, error)

type Com3

type Com3 struct {
	A int //starter:inject("#")
	B bool
	C rune
	D []byte
	E string
	F float32
}

Com3 ...

type ComNot

type ComNot struct {
	A int //starter:inject("666")
	B bool
	C rune
	D []byte
	E string
	F float32
}

ComNot 这不是一个组件

type IController

type IController interface {
	Fetch(c context.Context) error
}

type IDao

type IDao interface {
	Fetch(c context.Context, id int) (string, error)
}

type IService

type IService interface {
	Fetch(c context.Context, id string) (string, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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