GO API: Model
goapi/server/src/test.com/goapi/app/model/student.go
goapi/server/src/test.com/goapi/app/model/student.go
package model
type Student struct {
// Roll Number of the student
RollNumber int `json:"roll_number,omitempty"`
// Name of the student
Name string `json:"name,omitempty"`
// Branch of the student
Branch string `json:"branch,omitempty"`
// Year of admission
Batch string `json:"batch,omitempty"`
}
Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above.
Comments
Post a Comment