Changeset 59 in code for trunk


Ignore:
Timestamp:
Jan 19, 2024, 4:08:17 PM (17 months ago)
Author:
yakumo.izuru
Message:

Moved configfile variable to global scope

Signed-off-by: Izuru Yakumo <yakumo.izuru@…>

Location:
trunk/cmd/mai
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/cmd/mai/flag.go

    r56 r59  
    77
    88func parseFlags() {
    9         var configfile string
    109        flag.StringVar(&configfile, "f", "", "Configuration file")
    1110        flag.Parse()
  • trunk/cmd/mai/main.go

    r56 r59  
    1212        "github.com/gofiber/template/html/v2"
    1313)
    14 
     14var (
     15        configfile string
     16)
    1517var conf struct {
    1618        listen string
Note: See TracChangeset for help on using the changeset viewer.