feat: add tag(no_script)

This commit is contained in:
Skyxim 2022-06-04 23:54:06 +08:00
parent 91b4176557
commit 20cb4d0643
4 changed files with 18 additions and 0 deletions

View File

@ -1,3 +1,5 @@
//go:build !no_script
package js
import (

View File

@ -0,0 +1,12 @@
//go:build no_script
package js
import "fmt"
func NewJS(name, code string) error {
fmt.Errorf("unsupported script on the build")
}
func Run(name string, args map[string]any, callback func(any, error)) {
}

View File

@ -1,3 +1,5 @@
//go:build !no_script
package js
import (

View File

@ -1,3 +1,5 @@
//go:build !no_script
package js
import "github.com/Dreamacro/clash/log"