utils

package
v0.0.0-...-ed4837c Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2023 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckFilename

func CheckFilename(filename string) (err error)

func CreateShortURL

func CreateShortURL(ctx context.Context, isExist func(context.Context, string) bool) (shortURL string, err error)

CreateShortID создает короткий ID с проверкой на валидность

func CreateTLSCert

func CreateTLSCert(certPath, keyPath string) error

func IsURL

func IsURL(str string) bool

func NewShortURL

func NewShortURL() string

func WriteCypherToFile

func WriteCypherToFile(filepath string, cypherType string, cypher []byte) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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