Versions in this module Expand all Collapse all v0 v0.1.0 May 22, 2023 Changes in this version + var ErrFormatNotSupported = errors.New("format not supported") + var FormatJSON = Format("json") + var FormatLogfmt = Format("logfmt") + func Generate(cfg Config) error + func NewLog(format Format, at time.Time) string + func Run(cfg Config) error + type Config struct + At time.Time + Bytes int + Delay time.Duration + Forever bool + Format Format + Lines int + Output string + Overwrite bool + Sleep time.Duration + func DefaultConfig() Config + type CustomerOrder struct + At time.Time + HasAccount bool + Name string + TotalAmount float64 + func (co CustomerOrder) Format(f Format) string + type CustomerSatisfaction struct + At time.Time + HasAccount bool + Name string + SatisfactionLevel int + func (cs CustomerSatisfaction) Format(f Format) string + type Event interface + Format func(Format) string + func NewCustomerOrder(at time.Time) Event + func NewCustomerSatisfaction(at time.Time) Event + func NewEvent(at time.Time) Event + type Format string + func NewFormat(f string) (Format, error) + func (f Format) String() string