util

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BytesToString

func BytesToString(v []byte) string

func GINError

func GINError(ctx *gin.Context, err error)

GINError adds an error to the Gin context and aborts the request processing. Into a single call, eliminating the need for manual ctx.Next() calls.

Usage:

if err != nil {
    util.GINError(ctx, err)
    return
}

func GinContextString

func GinContextString(ctx *gin.Context) string

func StringToBytes

func StringToBytes(v string) []byte

func TitleCase

func TitleCase(s string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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