helpers

package
v0.0.0-...-1e1dff8 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateFile

func CreateFile(dir, fileName string, data []byte, logger *slog.Logger) (err error)

func CreateUploadsDir

func CreateUploadsDir(dirname string, logger *slog.Logger) (err error)

func PrepareTLSCert

func PrepareTLSCert(cert, key []byte) (tls.Certificate, error)

func WrapBoth

func WrapBoth(rw http.ResponseWriter, err error)

WrapBoth to Http response and stdout

func WrapCli

func WrapCli(err error)

func WrapHttp

func WrapHttp(rw http.ResponseWriter)

Types

This section is empty.

Jump to

Keyboard shortcuts

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