Deluan de90e191bb feat(hostgen): add hostgen tool for generating Extism host function wrappers
- Implemented hostgen tool to generate wrappers from annotated Go interfaces.
- Added command-line flags for input/output directories and package name.
- Introduced parsing and code generation logic for host services.
- Created test data for various service interfaces and expected generated code.
- Added documentation for host services and annotations for code generation.
- Implemented SubsonicAPI service with corresponding generated code.
2025-12-31 17:06:28 -05:00

12 lines
261 B
Go

package testpkg
import "context"
//nd:hostservice name=Meta permission=meta
type MetaService interface {
//nd:hostfunc
Get(ctx context.Context, key string) (value interface{}, err error)
//nd:hostfunc
Set(ctx context.Context, data map[string]any) error
}