Documentation ¶
Index ¶
Constants ¶
View Source
const (
DisableArtifactEnvVar = "KCL_GO_DISABLE_ARTIFACT"
)
Variables ¶
View Source
var ( Debug bool UseKCLPluginEnvVar = "KCL_GO_USE_PLUGIN" )
View Source
var (
ErrKclvmRootNotFound = errors.New("kclvm root not found, please ensure kcl is in your PATH")
)
Functions ¶
func GetKclvmPath ¶
GetKclvmPath return kclvm/python3 executable path, return error if not found.
func GetKclvmRoot ¶
GetKclvmRoot return kclvm root directory, return error if kclvm not found.
func InitKclvmRoot ¶
func InitKclvmRoot(kclvmRoot string)
func InitRuntime ¶
func InitRuntime(maxProc int)
func MustGetKclvmPath ¶
func MustGetKclvmPath() string
MustGetKclvmPath return kclvm/python3 executable path, panic if not found.
func MustGetKclvmRoot ¶
func MustGetKclvmRoot() string
GetKclvmRoot return kclvm root directory, panic if kclvm not found.
Types ¶
type BuiltinServiceClient ¶
type BuiltinServiceClient struct {
*Runtime
}
func (*BuiltinServiceClient) ListMethod ¶
func (p *BuiltinServiceClient) ListMethod(args *gpyrpc.ListMethod_Args) (resp *gpyrpc.ListMethod_Result, err error)
func (*BuiltinServiceClient) Ping ¶
func (p *BuiltinServiceClient) Ping(args *gpyrpc.Ping_Args) (resp *gpyrpc.Ping_Result, err error)
type Runtime ¶
type Runtime struct {
// contains filtered or unexported fields
}
func GetPyRuntime ¶
func GetPyRuntime() *Runtime
func GetRuntime ¶
func GetRuntime() *Runtime
Click to show internal directories.
Click to hide internal directories.