utils

package
v0.0.0-...-b9f8332 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2024 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// OS:
	WindowsOS = "windows"
	LinuxOS   = "linux"
	MacOS     = "darwin"
)

Variables

View Source
var (
	ConfigFileExampleContent []byte
	OpenApiSpecContent       []byte
	SwaggerUiFs              embed.FS
)

Functions

func AllPresent

func AllPresent(values ...string) bool

func AnyPresent

func AnyPresent(values ...string) bool

func DetectOsType

func DetectOsType() string

func GetOsSpecificDbDir

func GetOsSpecificDbDir() string

func InitEmbeds

func InitEmbeds(configFileExampleContent []byte, openApiSpecContent []byte, swaggerUiFs embed.FS)

func Is2xxHttpCode

func Is2xxHttpCode(code int) bool

func IsHttpCodeValid

func IsHttpCodeValid(code string) bool

func IsNoResponseBodyHttpCode

func IsNoResponseBodyHttpCode(code int) bool

func IsPortValid

func IsPortValid(port int) bool

func MinInt

func MinInt(a, b int) int

func MoreThanOnePresent

func MoreThanOnePresent(values ...string) bool

func NonePresent

func NonePresent(values ...string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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