util

package
v0.0.46 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2024 License: Apache-2.0 Imports: 8 Imported by: 12

Documentation

Overview

Package util contains utility functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckTestCase

func CheckTestCase(t *testing.T, res *types.ValidationRuleResult, expectedResult types.ValidationRuleResult, err, expectedError error)

CheckTestCase checks the result of a validation rule against the expected result.

func Gzip added in v0.0.46

func Gzip(input, output string) error

Gzip compresses a file using gzip and writes the result to disk

func Ptr

func Ptr[T any](x T) *T

Ptr returns a pointer to any arbitrary variable.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳