package main
import (
"fmt"
)
type Student struct {
Id string
Name string
Age int
}
func Input() *Student {
var student Student
student.Id = "st01"
student.Name = "Name 1"
student.Age = 20
return &student
}
func main() {
fmt.Println(*Input())
}
Output
{st01 Name 1 20}