utils

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package utils contains utility functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleJSError added in v0.5.0

func HandleJSError(msg string, err error) error

HandleJSError wraps a JS error in a Go error.

func ReplaceAllStringSubmatchFunc

func ReplaceAllStringSubmatchFunc(re *regexp.Regexp, str string, repl func([]string) (string, error)) (string, error)

ReplaceAllStringSubmatchFunc replaces all submatches with the result of the repl function.

Types

This section is empty.

Jump to

Keyboard shortcuts

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