Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- i := 123
- s := string(i)
- String s = "ab" + "c" // s is "abc"
- package main
- import (
- "strconv"
- "fmt"
- )
- func main() {
- t := strconv.Itoa(123)
- fmt.Println(t)
- }
- fmt.Sprintf("%v",value);
- func FormatInt(i int64, base int) string
- strconv.Itoa(123)
- strconv.FormatInt(int64(123), 10)
- package main
- import (
- "fmt"
- )
- func main() {
- var i int = 1
- fmt.Printf(" i type: %Tn", i)
- fmt.Printf("convert: %Tn", string(i))
- }
Add Comment
Please, Sign In to add comment