abound

package
v0.0.0-...-20db447 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2023 License: MIT Imports: 6 Imported by: 0

README

Abound

This package defines ABOUND specific methods for reading input and generating output according to the expected configuration of environemnt variables. This generally will not need to change for your algorithm.

Documentation

Overview

Package abound provides some helper utilities for reading configuration and writing output images.

Index

Constants

View Source
const (
	ConfigPathEnvVar = "ABOUND_CONFIG_PATH"
	OutputPathEnvVar = "ABOUND_OUTPUT_PATH"
)

Variables

This section is empty.

Functions

func LoadConfig

func LoadConfig(v any) error

LoadConfig parses an ABOUND configuration from its specified location into the provided structure.

func WritePNG

func WritePNG(img image.Image) error

WritePNG writes a PNG-formatted image to the target output path.

func WriteSVG

func WriteSVG(svg string) error

WriteSVG writes an SVG-formatted string to the target output path.

Types

This section is empty.

Jump to

Keyboard shortcuts

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