fake

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 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