Quick actions

cmd+k|ctrl+k

Navigation

Languages

Basic types / Integers / Essential Go

Snippet info

Language

Go

Visibility

public

Author

kkowalczyk

Created

2019-03-26T10:11:36Z

Updated

2019-03-26T10:11:36Z

package main

import (
	"fmt"
	"strconv"
)

func main() {
	var i1 int = -38
	fmt.Printf("i1: %s\n", strconv.Itoa(i1))

	var i2 int32 = 148
	fmt.Printf("i2: %s\n", strconv.Itoa(int(i2)))
}
INFO