mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2026-03-05 21:47:31 +00:00
fix: improve feature check and add missing patches
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
//go:build cmfa
|
||||
|
||||
package features
|
||||
|
||||
func init() {
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
//go:build with_low_memory
|
||||
|
||||
package features
|
||||
|
||||
func init() {
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
Reference in New Issue
Block a user