实现HTTP部分功能

This commit is contained in:
刘祥超
2020-09-26 08:07:24 +08:00
parent cc4f30a6f4
commit 60f656012f
52 changed files with 1120 additions and 391 deletions

15
pkg/configutils/state.go Normal file
View File

@@ -0,0 +1,15 @@
package configutils
import "github.com/iwind/TeaGo/types"
type BoolState = int8
const (
BoolStateAll BoolState = 0 // 全部
BoolStateYes BoolState = 1 // 已安装
BoolStateNo BoolState = 2 // 未安装
)
func ToBoolState(v interface{}) BoolState {
return types.Int8(v)
}