Added basic login functionality to login form
This commit is contained in:
5
main.go
5
main.go
@@ -4,6 +4,7 @@ import (
|
||||
"context"
|
||||
"embed"
|
||||
"fmt"
|
||||
"github.com/joho/godotenv"
|
||||
"io"
|
||||
"net"
|
||||
"net/http"
|
||||
@@ -57,6 +58,10 @@ func run(ctx context.Context, w io.Writer) error {
|
||||
var static embed.FS
|
||||
|
||||
func main() {
|
||||
err := godotenv.Load(".env")
|
||||
if err != nil {
|
||||
panic(err.Error())
|
||||
}
|
||||
ctx := context.Background()
|
||||
if err := run(ctx, os.Stdout); err != nil {
|
||||
fmt.Fprintf(os.Stderr, "%s\n", err)
|
||||
|
||||
Reference in New Issue
Block a user