declaration

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IocPkgAlias          = "goIoc"
	IocPkgContextPath    = "github.com/catmorte/go-ioc/pkg/context"
	IocPkgSingletonPath  = "github.com/catmorte/go-ioc/pkg/context/singleton"
	IocPkgSingletonAlias = "singleton"
	IocPkgPrototypePath  = "github.com/catmorte/go-ioc/pkg/context/prototype"
	IocPkgPrototypeAlias = "prototype"

	IocTag               = "bean"
	IocBeanStructName    = "Bean"
	IocInterfaceTagValue = "interface"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BeanType

type BeanType int

type Error

type Error struct {
	Message  string
	Position string
}

type File

type File struct {
	Path    string
	Imports []*Import
	Funcs   []*Func
	Structs []*Struct
}

type Func

type Func struct {
	Name      string
	Code      string
	Params    []*Type[ParamMeta]
	Results   []*Type[Empty]
	Types     []*Type[TypeMeta]
	Receivers []*Type[Empty]
}

type Import

type Import struct {
	Alias string
	Path  string
}

type IndexMeta

type IndexMeta struct {
	Field *Type[TypeMeta]
	Index *Type[TypeMeta]
}

type Package

type Package struct {
	Name   string
	Files  []*File
	Errors []*Error
}

type ParamMeta

type ParamMeta struct {
	IsVararg bool
}

type Struct

type Struct struct {
	Name   string
	Code   string
	Bean   *Type[StructFieldMeta]
	Fields []*Type[StructFieldMeta]
}

type StructFieldMeta

type StructFieldMeta struct {
	Name  string
	Tag   *string
	Index *IndexMeta
}

type Type

type Type[T any] struct {
	Code string
	Meta T
}

type TypeMeta

type TypeMeta struct {
	Name string
}

Jump to

Keyboard shortcuts

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