util

package
v0.0.0-...-d7093dc Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2020 License: MIT Imports: 8 Imported by: 1

Documentation

Overview

Package util contain some reused tool functions

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertHexToRGB

func ConvertHexToRGB(hexStr string) (color.RGBA, error)

ConvertHexToRGB convert a color hex string to RGB color object

func GetIPList

func GetIPList() (IPList []string, err error)

GetIPList get the machine ip address list

func IsGif

func IsGif(filename string) bool

IsGif check if input file is gif file

func IsJPG

func IsJPG(filename string) bool

IsJPG check if the input file is jpeg file type

func IsPng

func IsPng(filename string) bool

IsPng check if the input file is png file type

func IsSupportedImage

func IsSupportedImage(filename string) bool

IsSupportedImage check if the image type is supported type

func SaveImageToFile

func SaveImageToFile(images []image.Image, filenamePrefix string) error

SaveImageToFile is util function save the images to files

Types

This section is empty.

Jump to

Keyboard shortcuts

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