30 lines
334 B
Go
30 lines
334 B
Go
|
|
package model
|
||
|
|
|
||
|
|
import "fmt"
|
||
|
|
|
||
|
|
type Task struct {
|
||
|
|
Id string
|
||
|
|
Content string
|
||
|
|
}
|
||
|
|
|
||
|
|
type Data struct {
|
||
|
|
Count int
|
||
|
|
Record map[int]int
|
||
|
|
}
|
||
|
|
|
||
|
|
type Student struct {
|
||
|
|
Name string
|
||
|
|
Age int
|
||
|
|
}
|
||
|
|
|
||
|
|
func (stu Student) Prinfstu() {
|
||
|
|
fmt.Println(stu.Age)
|
||
|
|
fmt.Println(stu.Name)
|
||
|
|
}
|
||
|
|
|
||
|
|
type CursorData struct {
|
||
|
|
Uid string
|
||
|
|
Author string
|
||
|
|
Age int
|
||
|
|
}
|