utils

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckDir

func CheckDir(name string) error

CheckDir creates a dir with the specified name if it does not exist. Returns an error if a file with the specified name exists.

func MustWriteBytes

func MustWriteBytes(writer http.ResponseWriter, data []byte, code int)

func MustWriteString

func MustWriteString(writer http.ResponseWriter, data string, code int)

Types

This section is empty.

Jump to

Keyboard shortcuts

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