Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Storage ¶
type Storage interface {
CreateStudent(name string, email string, age int) (int64, error)
GetStudentById(id int64) (types.Student, error)
GetListOfStudents() ([]types.Student, error)
UpdateStudent(id int64, name string, email string, age int) (int64, error)
DeleteStudentById(id int64) error
}
making interface - imortant
Click to show internal directories.
Click to hide internal directories.