From 1a107263f28fc192c038e5f521b532b4b7498c0e Mon Sep 17 00:00:00 2001 From: peefy Date: Mon, 29 Jul 2024 12:58:00 +0800 Subject: [PATCH] chore: bump native go build tags to rpc Signed-off-by: peefy --- pkg/kcl/rpc_service.go | 4 ++-- pkg/kcl/service.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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() }