Skip to content

Instantly share code, notes, and snippets.

@rudSarkar
Created August 21, 2023 20:24
Show Gist options
  • Save rudSarkar/e15d3caa0e8b921da5d77c7b9e026562 to your computer and use it in GitHub Desktop.
Save rudSarkar/e15d3caa0e8b921da5d77c7b9e026562 to your computer and use it in GitHub Desktop.
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