Skip to content

Commit

Permalink
set: fast-eval mode to default
Browse files Browse the repository at this point in the history
Signed-off-by: peefy <[email protected]>
  • Loading branch information
Peefy committed Jul 24, 2024
1 parent f5d188f commit 54bb21c
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions go/env/env.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package env

import "os"

func init() {
EnableFastEvalMode()
}

// Enable the fast eval mode.
func EnableFastEvalMode() {
// Set the fast eval mode for KCL
os.Setenv("KCL_FAST_EVAL", "1")
}

0 comments on commit 54bb21c

Please sign in to comment.