Skip to content

shanedell/goutils

Repository files navigation

goutils

Golang utilities.

  • env
    • Wrapper functions around os.Getenv to simplify retrieval of environment variables
      • Supported types: string, int, bool, float32, float64, complex64 and complex128.
    • Wrapper functions around godotenv.Load
      • These either return its error or ignore the error when trying to source the env file passed.
  • path
    • Method to check if passed path exists.
  • slice
    • The main purpose behind this module is so you know what type is being used. If that is not a big deal just use slices.Contains instead.
    • Functions to check if list contains a value.
      • Supported types: string, int, int32, int64, bool, float32, float64, complex64 and complex128.

About

Utility Golang modules to make performing some operations easier

Resources

Stars

Watchers

Forks

Packages

No packages published