Skip to content

Commit

Permalink
chore: bump native go build tags to rpc
Browse files Browse the repository at this point in the history
Signed-off-by: peefy <[email protected]>
  • Loading branch information
Peefy committed Jul 29, 2024
1 parent cb3d3b9 commit 1a10726
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pkg/kcl/rpc_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
4 changes: 2 additions & 2 deletions pkg/kcl/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}

0 comments on commit 1a10726

Please sign in to comment.