util

package
v0.0.0-...-c2e572c Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Append

func Append(slice []int, s int) []int

Append appends the integer when it not already in the slice.

func Contains

func Contains(slice []int, s int) bool

Contains returns true when s is in slice.

func ContainsString

func ContainsString(list []string, s string) bool

ContainsString returns true when s in slice.

func DetectContentType

func DetectContentType(r io.Reader) string

DetectContentType detects the ContentType from the first 512 bytes of the given io.Reader.

func Remove

func Remove(slice []int, s int) []int

Remove element from slice.

func ResizeImage

func ResizeImage(file io.Reader, maxDimension int) (image.Image, error)

func SaveImage

func SaveImage(img image.Image, path string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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