mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-11-10 02:53:12 +00:00
22 lines
315 B
Go
22 lines
315 B
Go
//go:build linux || darwin
|
|
|
|
package libbox
|
|
|
|
import (
|
|
C "github.com/sagernet/sing-box/constant"
|
|
|
|
"github.com/dustin/go-humanize"
|
|
)
|
|
|
|
func SetBasePath(path string) {
|
|
C.SetBasePath(path)
|
|
}
|
|
|
|
func Version() string {
|
|
return C.Version
|
|
}
|
|
|
|
func FormatBytes(length int64) string {
|
|
return humanize.Bytes(uint64(length))
|
|
}
|