utils

package module
v0.0.0-...-110d4d0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2022 License: MIT Imports: 5 Imported by: 0

README

goutils

Package that provides useful methods that I find myself using across projects

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BaseDir

func BaseDir(remove []string, projectRoot string) (string, error)

BaseDir gets the base directory

func FileConfigs

func FileConfigs(path string) (jsonextract.JSONExtract, error)

FileConfigs returns a jsonextract from a JSON file

func Float64Interface

func Float64Interface(input interface{}) float64

Float64Interface checks if interface is a float64 and returns it if so

func GetFileContent

func GetFileContent(name string) ([]byte, error)

GetFileContent parses a file and retrieves its content

func Int64Interface

func Int64Interface(input interface{}) int64

Int64Interface checks if interface is an int64 and returns it if so

func StringInterface

func StringInterface(input interface{}) string

StringInterface checks that an interface is a string and returns it if so

Types

This section is empty.

Jump to

Keyboard shortcuts

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