Created
August 21, 2023 20:24
-
-
Save rudSarkar/e15d3caa0e8b921da5d77c7b9e026562 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import "fmt" | |
func main() { | |
var name string | |
var age int | |
var is_active bool // true false | |
name = "John Doe" | |
age = 25 | |
is_active = true | |
fmt.Println(name) | |
fmt.Printf("Name Data type: %T %s ", name, name) | |
fmt.Println(age) | |
fmt.Printf("Name Data type: %T %d ", age, age) | |
fmt.Println(is_active) | |
fmt.Printf("Name Data type: %T %v", is_active, is_active) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment