refactor: Platform Interfaces

This commit is contained in:
世界
2024-11-11 16:23:45 +08:00
parent 5377021746
commit aa28d5394d
15 changed files with 264 additions and 248 deletions

8
constant/network.go Normal file
View File

@@ -0,0 +1,8 @@
package constant
const (
InterfaceTypeWIFI = "wifi"
InterfaceTypeCellular = "cellular"
InterfaceTypeEthernet = "ethernet"
InterfaceTypeOther = "other"
)

View File

@@ -6,7 +6,7 @@ import (
const IsAndroid = goos.IsAndroid == 1
const IsDarwin = goos.IsDarwin == 1
const IsDarwin = goos.IsDarwin == 1 || goos.IsIos == 1
const IsDragonfly = goos.IsDragonfly == 1