github.com/bingoohuang/gg@v0.0.0-20240325092523-45da7dee9335/pkg/man/examples_test.go (about) 1 package man_test 2 3 import ( 4 "fmt" 5 6 "github.com/bingoohuang/gg/pkg/man" 7 ) 8 9 func ExampleBytes() { 10 fmt.Printf("That file is %s.\n", man.Bytes(82854982)) 11 fmt.Printf("That file is %s.\n", man.IBytes(82854982)) 12 fmt.Printf("That file is %s.\n", man.ByteCount(82854982)) 13 fmt.Printf("That file is %s.\n", man.IByteCount(82854982)) 14 15 // Output: 16 // That file is 82.9MB. 17 // That file is 79MiB. 18 // That file is 82.9MB. 19 // That file is 79MiB. 20 }