github.com/sagernet/sing-box@v1.2.7/experimental/libbox/setup.go (about) 1 package libbox 2 3 import ( 4 C "github.com/sagernet/sing-box/constant" 5 6 "github.com/dustin/go-humanize" 7 ) 8 9 func SetBasePath(path string) { 10 C.SetBasePath(path) 11 } 12 13 func Version() string { 14 return C.Version 15 } 16 17 func FormatBytes(length int64) string { 18 return humanize.IBytes(uint64(length)) 19 }