mycmp

package module
v0.0.0-...-0dfb233 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Address

type Address struct {
	ZipCode string
	Pref    string
	City    string
	Street  string
}

type Card

type Card struct {
	ID     string
	Number string
}

type User

type User struct {
	ID      string
	Name    string
	Age     int
	Address Address
	Cards   []Card
}

func NewUser

func NewUser(name string, age int, addr *Address, cards []Card) User

type UserRepository

type UserRepository interface {
	Save(User) error
}

type UserService

type UserService struct {
	// contains filtered or unexported fields
}

func NewUserService

func NewUserService(repo UserRepository) UserService

func (UserService) Save

func (s UserService) Save(name string, age int, addr *Address) error

Directories

Path Synopsis
Package mock_mycmp is a generated GoMock package.
Package mock_mycmp is a generated GoMock package.

Jump to

Keyboard shortcuts

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