Guest User

Untitled

a guest
Feb 21st, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. i := 123
  2. s := string(i)
  3.  
  4. String s = "ab" + "c" // s is "abc"
  5.  
  6. package main
  7.  
  8. import (
  9. "strconv"
  10. "fmt"
  11. )
  12.  
  13. func main() {
  14. t := strconv.Itoa(123)
  15. fmt.Println(t)
  16. }
  17.  
  18. fmt.Sprintf("%v",value);
  19.  
  20. func FormatInt(i int64, base int) string
  21.  
  22. strconv.Itoa(123)
  23.  
  24. strconv.FormatInt(int64(123), 10)
  25.  
  26. package main
  27.  
  28. import (
  29. "fmt"
  30. )
  31.  
  32. func main() {
  33. var i int = 1
  34. fmt.Printf(" i type: %Tn", i)
  35. fmt.Printf("convert: %Tn", string(i))
  36. }
Add Comment
Please, Sign In to add comment