utils

package
v0.0.0-...-905eacb Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SanitizeString

func SanitizeString(input string) string

SanitizeString will return a sanitized string, to prevent any kind of injection attacks.

  • removes special characters from the input string
  • returns the sanitized string
  • input: string
  • output: string
  • example: SanitizeString("Hello, World!") => "Hello World"

Types

This section is empty.

Jump to

Keyboard shortcuts

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