util

package
v0.0.0-...-9004257 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DbToModel

func DbToModel(connRow pgx.Row, model interface{})

DbToModel maps the database query to struct fields

func DirExists

func DirExists(dirName string) bool

DirExists this checks if the directory exists and is a directory

func Exists

func Exists(fileName string) bool

Exists checks if anything exists

func FileExists

func FileExists(fileName string) bool

FileExists this checks if the files exists and is a file

func GetAppDir

func GetAppDir() (string, error)

GetAppDir returns the absolute path of the app dir

func GetConfigFolder

func GetConfigFolder() (string, error)

GetConfigFolder returns the config folder for the project

func GetMigrationsFolder

func GetMigrationsFolder() (string, error)

GetMigrationsFolder returns the migration folder in the project

func InSliceString

func InSliceString(key string, list []string) bool

InSliceString return true or false if the string exists in the array

func MapSlice

func MapSlice(dest ...interface{}) []interface{}

MapSlice maps the list of values to an interface array

Types

This section is empty.

Jump to

Keyboard shortcuts

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