Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion variablestypes/variables.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func main() {
var y int

//Declare and set value, let the compiler work out the type
var z int = 2
var z = 2

// fmt.Printf is Go's standard print function. The %T verb allows you to print the type of a variable
fmt.Printf("%T %T %T %T\n", x, n, y, z)
Expand Down