_5_implicit_interfaces

package
v0.0.0-...-24b7180 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 18, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Usage

func Usage()

Types

type User

type User struct {
	ID   int
	Name string
}

type UserDAO

type UserDAO interface {
	Load(ID int) (*User, error)
	Save(user *User) error
}

func NewUserDAOInterface

func NewUserDAOInterface() UserDAO

type UserDAOImpl

type UserDAOImpl struct{}

func NewUserDAOStruct

func NewUserDAOStruct() *UserDAOImpl

func (*UserDAOImpl) Load

func (u *UserDAOImpl) Load(ID int) (*User, error)

func (*UserDAOImpl) Save

func (u *UserDAOImpl) Save(user *User) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL