Documentation
¶
Overview ¶
Code generated by github.com/ngicks/go-codegen/codegen/generator/cloner/internal/liststdtypes DO NOT EDIT.
Index ¶
Constants ¶
View Source
const ( DirectivePrefix = "cloner:" DirectiveCommentIgnore = "ignore" DirectiveCommentCopyPtr = "copyptr" DirectiveCommentMake = "make" )
Variables ¶
View Source
var (
ErrUnknownDirective = errors.New("unknown directive")
)
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
MatcherConfig *MatcherConfig
Logger *slog.Logger
}
type CopyHandle ¶
type CopyHandle uint64
const ( // ignore nocopy object CopyHandleIgnore CopyHandle = 1 << iota // disallow nocopy object CopyHandleDisallow CopyHandleCopyPointer // Only for channel. make a new channel. CopyHandleMake )
type CustomHandler ¶
type CustomHandler struct {
Matcher func(types.Type) bool
Imports []imports.TargetImport
Expr func(CustomHandlerExprData) (expr func(s string) (expr string), isFunc bool)
}
type CustomHandlerExprData ¶
type CustomHandlers ¶
type CustomHandlers []CustomHandler
func (CustomHandlers) Imports ¶
func (h CustomHandlers) Imports() []imports.TargetImport
type MatcherConfig ¶
type MatcherConfig struct {
NoCopyHandle CopyHandle
ChannelHandle CopyHandle
FuncHandle CopyHandle
InterfaceHandle CopyHandle
CustomHandlers CustomHandlers
// contains filtered or unexported fields
}
func NewMatcherConfig ¶
func NewMatcherConfig() *MatcherConfig
func (*MatcherConfig) SetLogger ¶
func (c *MatcherConfig) SetLogger(l *slog.Logger) *MatcherConfig
Source Files
¶
Click to show internal directories.
Click to hide internal directories.