# README
Go-LocEnv
A library for managing environment variables in Go applications.
Technologies • Running • Author
Technologies
The following tools were used in building the project:
- Go
- IDE Visual Studio Code
Running
1. First, you need to install Go on your system. You can do this by following the instructions at the following link: https://golang.org/dl/
2. Choose an IDE of your choice, in this case we will use Visual Studio Code. To download it follow the link: https://code.visualstudio.com/download
3. Open your terminal and use go get
to download and install the go-locEnv
library. Replace github.com/jonh-dev/go-locEnv/config
with the path to your go-envloader
library:
$ go get github.com/jonh-dev/go-locEnv/config
4. Now you can import the go-envloader library into your Go project. Here's an example of how you can do this:
import (
"github.com/jonh-dev/go-locEnv/config"
)
5. Now you can use the go-locEnv library in your code. Here’s an example of how you can do this:
func main() {
envLoader := config.NewEnvLoader()
err := envLoader.LoadEnv()
if err != nil {
log.Fatal(err)
}
env := envLoader.GetEnv()
log.Info("Current environment: ", env)
}
6. Finally, run the project using the command go run main.go to run the application.
Author
Made by Jonh Dev 🙏