util

package
v0.0.0-...-afb62a2 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package util contains utility functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Die

func Die(err error)

Die prints an error message to stderr and exits with a non-zero status.

func DrawImg

func DrawImg(src image.Image, dst *image.RGBA, x, y int)

DrawImg draws one image onto another at a given offset.

func ReadImage

func ReadImage(filename string) image.Image

ReadImage reads an image from a GIF, JPEG, or PNG file.

Types

This section is empty.

Jump to

Keyboard shortcuts

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