utils

package
v0.2.12 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanupTables

func CleanupTables(tables []string) []string

CleanupTables filters out 'bigbucket' and '/' from tables []string

func GetState

func GetState(object string) []string

GetState gets object content as string[]

func MergeMaps

func MergeMaps(maps ...map[string]string) map[string]string

MergeMaps merges multiple maps into one; duplicate k-v in subsequent maps will override previous ones

func RemoveIndex

func RemoveIndex(list []string, index int) []string

RemoveIndex removes item from slice at index

func RunServer

func RunServer(port int, router *gin.Engine)

RunServer creates and runs a new Gin HTTP server with graceful shutdown

func Search(list []string, a string) int

Search returns first index where found, otherwise -1

func WriteState

func WriteState(object string, state []string) error

WriteState writes string[] to object

Types

This section is empty.

Jump to

Keyboard shortcuts

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