From 15d76f08ba17b4df212a179dcc747d4d31f66c9c Mon Sep 17 00:00:00 2001 From: Peefy Date: Fri, 26 Jul 2024 21:52:56 +0800 Subject: [PATCH] Update README.md --- README.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/README.md b/README.md index 9e34b614..e93f450c 100644 --- a/README.md +++ b/README.md @@ -106,13 +106,11 @@ import ( "fmt" "kcl-lang.io/kcl-go/pkg/kcl" - "kcl-lang.io/kcl-go/pkg/native" // Import the native API _ "kcl-lang.io/kcl-go/pkg/plugin/hello_plugin" // Import the hello plugin ) func main() { - // Note we use `native.MustRun` here instead of `kcl.MustRun`, because it needs the cgo feature. - yaml := native.MustRun("main.k", kcl.WithCode(code)).GetRawYamlResult() + yaml := kcl.MustRun("main.k", kcl.WithCode(code)).GetRawYamlResult() fmt.Println(yaml) }