fix: improve feature check and add missing patches

This commit is contained in:
Steve Johnson
2023-11-17 19:03:39 +08:00
parent d9cfdc3242
commit b5a8f0fce1
12 changed files with 64 additions and 45 deletions

View File

@@ -1,4 +1,5 @@
//go:build cmfa
package features
func init() {

View File

@@ -1,4 +1,5 @@
//go:build with_low_memory
package features
func init() {

View File

@@ -1,3 +1,11 @@
package features
import(
"golang.org/x/exp/slices"
)
var TAGS = make([]string, 0, 0)
func Contains(feat string) (bool) {
return slices.Contains(TAGS, feat)
}