utils

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2025 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataBase

type DataBase struct {
	// contains filtered or unexported fields
}

Simple key-value storage

func GetDataBaseInstance

func GetDataBaseInstance() *DataBase

func (*DataBase) Delete

func (db *DataBase) Delete(key string)

func (DataBase) Get

func (db DataBase) Get(key string) string

func (DataBase) Print

func (db DataBase) Print()

func (*DataBase) Set

func (db *DataBase) Set(key string, value string)

type EmptyVariable added in v0.0.3

type EmptyVariable struct {
	Name      string
	FileNames string
	Lines     int
}

func PreprocessDir

func PreprocessDir(path string) ([]EmptyVariable, error)

preprocesses a directory with values loaded from a database. If a value is not found will be returned to caller in list

func PreprocessFile

func PreprocessFile(path string) ([]EmptyVariable, error)

Jump to

Keyboard shortcuts

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