refactor: Platform Interfaces

This commit is contained in:
世界
2024-11-11 16:23:45 +08:00
parent 9afe75586a
commit ecf82d197c
15 changed files with 267 additions and 251 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