24 lines
364 B
Go
24 lines
364 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"log"
|
|
"os"
|
|
|
|
"github.com/joho/godotenv"
|
|
)
|
|
|
|
func main() {
|
|
err := godotenv.Load()
|
|
if err != nil {
|
|
log.Fatal("Error loading .env file")
|
|
}
|
|
|
|
port := os.Getenv("PORT")
|
|
|
|
storage_path := os.Getenv("STORAGE_PATH")
|
|
|
|
fmt.Printf("in the future I will listen on port: %s\n", port)
|
|
fmt.Printf("Reading files from: %s\n", storage_path)
|
|
}
|