pkg

package
v0.1.56 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2023 License: MIT Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Color string `json:"color" yaml:"color"`
}

func ParseConfig

func ParseConfig(path string) (*Config, error)

func (*Config) GenerateImage

func (c *Config) GenerateImage(width, height int) image.Image

func (*Config) Validate added in v0.1.18

func (c *Config) Validate() error

type ImageGenerator

type ImageGenerator interface {
	GenerateImage(width, height int) image.Image
}

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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