sample

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB interface {
	Get(id string) int
	Set(id string, v int)
}

type MockDB

type MockDB struct {
	GetFunc func(id string) int
	SetFunc func(id string, v int)
}

func (*MockDB) Get

func (m *MockDB) Get(id string) int

func (*MockDB) Set

func (m *MockDB) Set(id string, v int)

Jump to

Keyboard shortcuts

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