fake

package
v0.0.0-...-babaf4e Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2023 License: Unlicense Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IterateReports

func IterateReports(generator ReportsGenerator, n int, cb func(report data.Report))

Types

type GofakeitGenerator

type GofakeitGenerator struct{}

func (GofakeitGenerator) Generate

func (gen GofakeitGenerator) Generate() (data.Report, error)

func (GofakeitGenerator) GenerateImageReportPart

func (GofakeitGenerator) GenerateImageReportPart() data.ReportPart

func (GofakeitGenerator) GenerateReportPart

func (gen GofakeitGenerator) GenerateReportPart() data.ReportPart

func (GofakeitGenerator) GenerateReportParts

func (gen GofakeitGenerator) GenerateReportParts() []data.ReportPart

func (GofakeitGenerator) GenerateReportPeriod

func (GofakeitGenerator) GenerateReportPeriod() data.ReportPeriod

func (GofakeitGenerator) GenerateTextReportPart

func (GofakeitGenerator) GenerateTextReportPart() data.ReportPart

func (GofakeitGenerator) GenerateUser

func (GofakeitGenerator) GenerateUser() data.User

type ReportsGenerator

type ReportsGenerator interface {
	Generate() (data.Report, error)
}

type WikipediaGenerator

type WikipediaGenerator struct {
	Lang              string
	ArticlesNamespace int
	// contains filtered or unexported fields
}

func (WikipediaGenerator) Generate

func (gen WikipediaGenerator) Generate() (data.Report, error)

Jump to

Keyboard shortcuts

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