mirror of
https://github.com/jefferyjob/go-easy-utils.git
synced 2025-10-23 14:53:28 +08:00
54 lines
527 B
Go
54 lines
527 B
Go
package intUtil
|
|
|
|
import "fmt"
|
|
|
|
func ExampleIntToStr() {
|
|
i := 123
|
|
res := IntToStr(i)
|
|
|
|
fmt.Println(res)
|
|
|
|
// Output:
|
|
// 123
|
|
}
|
|
|
|
func ExampleInt8ToStr() {
|
|
i := 123
|
|
res := IntToStr(i)
|
|
|
|
fmt.Println(res)
|
|
|
|
// Output:
|
|
// 123
|
|
}
|
|
|
|
func ExampleInt16ToStr() {
|
|
i := 123
|
|
res := IntToStr(i)
|
|
|
|
fmt.Println(res)
|
|
|
|
// Output:
|
|
// 123
|
|
}
|
|
|
|
func ExampleInt32ToStr() {
|
|
i := 123
|
|
res := IntToStr(i)
|
|
|
|
fmt.Println(res)
|
|
|
|
// Output:
|
|
// 123
|
|
}
|
|
|
|
func ExampleInt64ToStr() {
|
|
i := 123
|
|
res := IntToStr(i)
|
|
|
|
fmt.Println(res)
|
|
|
|
// Output:
|
|
// 123
|
|
}
|