fake

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FakeOrders

func FakeOrders(count int) map[string]*model.OrderM

FakeOrders returns fake order data.

func NewStore

func NewStore(count int) *datastore

NewStore 创建一个 store.IStore 类型的实例.

Types

type ByID

type ByID []*model.OrderM

func (ByID) Len

func (o ByID) Len() int

func (ByID) Less

func (o ByID) Less(i, j int) bool

func (ByID) Swap

func (o ByID) Swap(i, j int)

Jump to

Keyboard shortcuts

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