utils

package
v0.0.0-...-9224f95 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateHandler

func CreateHandler(posthandler, getHandler func(http.ResponseWriter, *http.Request)) func(http.ResponseWriter, *http.Request)

CreateHandler create a post/get handler with both function

func DownloadAndConvert

func DownloadAndConvert(rw http.ResponseWriter, req *http.Request) (result string, err error)

DownloadAndConvert download image, convert it to ascii, and write the response. Return the converted image as string or the error

Types

This section is empty.

Jump to

Keyboard shortcuts

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