Skip to content

Commit

Permalink
Create todo.go.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelpragier authored Sep 4, 2020
1 parent 3124c86 commit 0c5b97a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions todo.go.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
const i =255
const j = 1.1

func main() {
var x uint8 = i
var y float64 = i
// var w uint = j -- constant 1.1 truncated to integer

fmt.Printf("%T %T %T %T",i,x,y,j)
}

0 comments on commit 0c5b97a

Please sign in to comment.