utils

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2023 License: MIT Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Base64FromFile

func Base64FromFile(path string) (string, error)

Convenience function to encode image in any format to base64

func Base64FromFileIgnore

func Base64FromFileIgnore(path string) string

Convenience function to encode image in any format to base64 and IGNORE ANY ERRORS that might occur.

This may be helpful when you are SURE it doesn't give you any error

func Base64FromFiles added in v0.3.0

func Base64FromFiles(allPath ...string) (res []string, err error)

Convenience function to encode image in any format to base64

func DecodeBase64

func DecodeBase64(data string) ([]byte, error)

func EncodeBase64

func EncodeBase64(data []byte) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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