diff --git a/pkg/kcl/rpc_service.go b/pkg/kcl/rpc_service.go index 5eaafab4..2b2750db 100644 --- a/pkg/kcl/rpc_service.go +++ b/pkg/kcl/rpc_service.go @@ -6,8 +6,8 @@ package kcl import "kcl-lang.io/kcl-go/pkg/service" // Service returns the interaction interface between KCL Go SDK and KCL Rust core. -// When `go build tags=native` is opened, use CGO and dynamic libraries to interact. -// When closed, use the default RPC interaction logic to avoid CGO usage. +// When `go build tags=rpc` is opened, use the default RPC interaction logic to avoid CGO usage. +// When closed, use CGO and dynamic libraries to interact. func Service() service.KclvmService { return service.NewKclvmServiceClient() } diff --git a/pkg/kcl/service.go b/pkg/kcl/service.go index bf0f00e2..710c6ac8 100644 --- a/pkg/kcl/service.go +++ b/pkg/kcl/service.go @@ -9,8 +9,8 @@ import ( ) // Service returns the interaction interface between KCL Go SDK and KCL Rust core. -// When `go build tags=native` is opened, use CGO and dynamic libraries to interact. -// When closed, use the default RPC interaction logic to avoid CGO usage. +// When `go build tags=rpc` is opened, use the default RPC interaction logic to avoid CGO usage. +// When closed, use CGO and dynamic libraries to interact. func Service() service.KclvmService { return native.NewNativeServiceClient() }