Compare commits
2 Commits
7fc73921d3
...
4df3116475
| Author | SHA1 | Date | |
|---|---|---|---|
| 4df3116475 | |||
| 42bbe1fa21 |
@@ -1,11 +1,11 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"flag"
|
||||||
"fmt"
|
"fmt"
|
||||||
"net/http"
|
"net/http"
|
||||||
"os"
|
"os"
|
||||||
"strconv"
|
"strconv"
|
||||||
"flag"
|
|
||||||
|
|
||||||
"github.com/joho/godotenv"
|
"github.com/joho/godotenv"
|
||||||
|
|
||||||
@@ -24,7 +24,7 @@ func main() {
|
|||||||
}
|
}
|
||||||
port_arg := os.Getenv("FIB_PORT")
|
port_arg := os.Getenv("FIB_PORT")
|
||||||
if port_arg != "" {
|
if port_arg != "" {
|
||||||
fmt.Printf("Loaded port value '%s' from environment.\n",port_arg)
|
fmt.Printf("Loaded port value '%s' from environment.\n", port_arg)
|
||||||
port_number, error = strconv.Atoi(port_arg)
|
port_number, error = strconv.Atoi(port_arg)
|
||||||
if error != nil {
|
if error != nil {
|
||||||
fmt.Printf("I had an error trying to parse '%s' into a number: %s\n",
|
fmt.Printf("I had an error trying to parse '%s' into a number: %s\n",
|
||||||
|
|||||||
Reference in New Issue
Block a user