📌  相关文章
📜  golang 类型 - Go 编程语言代码示例

📅  最后修改于: 2022-03-11 14:45:00.022000             🧑  作者: Mango

代码示例1
package main

import (
    "fmt"
)

type (
    Name string
    Age  uint
)
func main() {
  var name Name
  var age Age
  name = "john doe"
  age = 30
  fmt.Printf("nama saya %s dan umur saya %d", name, age)
}