Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package main
- import (
- "fmt"
- )
- func main() {
- // a is an integer
- a := 1
- // b is a floating-pointing number
- b := 2.0
- // Error: mismatched types.
- fmt.Println(a + b)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement