utils

package
v0.0.0-...-e4649f2 Latest Latest
Warning

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

Go to latest
Published: May 6, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package utils exposes some utility functions that can be used by other packages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateUUID

func GenerateUUID() string

GenerateUUID generates a unique UUID in the string format.

func JSONErrorResponse

func JSONErrorResponse(w http.ResponseWriter, err string)

JSONErrorResponse creates an http error response object.

func JSONNoDataResponse

func JSONNoDataResponse(w http.ResponseWriter, respStr string)

JSONNoDataResponse creates an http no-data response object.

func JSONSuccessResponse

func JSONSuccessResponse(w http.ResponseWriter, data interface{})

JSONSuccessResponse creates an http success response object.

Types

This section is empty.

Jump to

Keyboard shortcuts

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