Skip to content

Commit b6a40dc

Browse files
committed
learning test variable golang
learning test variable golang
1 parent 654e561 commit b6a40dc

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
package main
2+
3+
import "fmt"
4+
5+
func main() {
6+
var a, b int = 10, 20
7+
8+
var d int = 100
9+
var f int = 200
10+
11+
var sampleInt, sampleBoolean, sampleString = 50, true,
12+
"Hello tainguyenbp"
13+
14+
var sampleInt_single = 50
15+
var sampleBoolean_single = false
16+
var sampleString_single = "Hello tainguyen"
17+
18+
fmt.Println("value variable is: ", a, b, d, f, sampleInt, sampleBoolean, sampleString)
19+
fmt.Println("value variable single is: ", sampleInt_single, sampleBoolean_single, sampleString_single)
20+
21+
}

0 commit comments

Comments
 (0)