Documentation
¶
Index ¶
- Variables
- func BamlVersion() string
- func CallFunctionFromC(runtime unsafe.Pointer, functionName string, encodedArgs []byte, id uint32) (unsafe.Pointer, error)
- func CallFunctionStreamFromC(runtime unsafe.Pointer, functionName string, encodedArgs []byte, id uint32) (unsafe.Pointer, error)
- func CreateBamlRuntime(rootPath string, srcFilesJson string, envVarsJson string) (unsafe.Pointer, error)
- func DestroyBamlRuntime(runtime unsafe.Pointer) error
- func InvokeRuntimeCli(args []string) (int, error)
- func RegisterCallbacks(callbackFn unsafe.Pointer, errorFn unsafe.Pointer) error
- func SetSharedLibraryPath(path string)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrLoadLibrary = errors.New("failed loading BAML shared library") ErrNotSupportedPlatform = errors.New("supported only Linux and MacOS") )
BAML specific error messages
Functions ¶
func BamlVersion ¶
func BamlVersion() string
func CallFunctionFromC ¶
func CallFunctionStreamFromC ¶
func CreateBamlRuntime ¶
func DestroyBamlRuntime ¶
func InvokeRuntimeCli ¶
func RegisterCallbacks ¶
func SetSharedLibraryPath ¶
func SetSharedLibraryPath(path string)
SetSharedLibraryPath sets the library path for BAML.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.