bindgen

package module
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2024 License: MIT Imports: 0 Imported by: 0

README

bindgen

Action Report Card Lines of code godoc License

xuender/bindgen is a ...

🚀 Install

go install gitee.com/xuender/bindgen/cmd/bindgen@latest

💡 Usage

TODO

👤 Contributors

Contributors

📝 License

© ender, 2024~time.Now

MIT LICENSE

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build(ignoreFields ...string) string

Build is placed in the body of an bind function template to declare the source to use. The bindgen code generation tool will fill in an implementation of the function. Build returns an error message that can be sent to a call to panic().

Examples:

func bind[T any](target T, source1, source2 any) T {
	panic(bindgen.Build("ignore1", "ignore2"))
}

func bind(target any, source1, source2 any) {
	panic(bindgen.Build())
}

func (p *obj) bind(source1, source2 any) {
	panic(bindgen.Build())
}

func new(source1, source2 any) any {
	panic(bindgen.Build())
}

nolint: revive

Types

This section is empty.

Directories

Path Synopsis
_example
pb
cmd

Jump to

Keyboard shortcuts

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