Пример #1
0
// Destroy - delete session from DB
func (user *User) Destroy() error {
	if _, err := orm.Delete(user); err != nil {
		return err
	}

	return nil
}
Пример #2
0
// Destroy - delete session from DB
func (session *Session) Destroy() error {
	if _, err := orm.Delete(session); err != nil {
		return err
	}

	return nil
}