mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-11-14 12:53:17 +00:00
24 lines
344 B
Go
24 lines
344 B
Go
package libbox
|
|
|
|
import (
|
|
C "github.com/sagernet/sing-box/constant"
|
|
|
|
"github.com/dustin/go-humanize"
|
|
)
|
|
|
|
func SetBasePath(path string) {
|
|
C.SetBasePath(path)
|
|
}
|
|
|
|
func SetTempPath(path string) {
|
|
C.SetTempPath(path)
|
|
}
|
|
|
|
func Version() string {
|
|
return C.Version
|
|
}
|
|
|
|
func FormatBytes(length int64) string {
|
|
return humanize.IBytes(uint64(length))
|
|
}
|