Skip to content

Commit

Permalink
Improved main.go
Browse files Browse the repository at this point in the history
  • Loading branch information
nthnn committed Nov 5, 2023
1 parent 5f2f390 commit c8fa94d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 226 deletions.
6 changes: 4 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import (
"flag"
"fmt"
"os"

"github.com/nthnn/AnkoWeb/server"
)

func initFlags() {
Expand All @@ -20,7 +22,7 @@ func main() {
path := flag.String("path", ".", "Working directory for the server.")
host := flag.String("host", "", "Name of the localhost server.")
port := flag.Int("port", 1234, "Port of the localhost server.")
initFlags()

awpServer(*path, *host, int16(*port))
initFlags()
server.AwpServer(*path, *host, int16(*port))
}
81 changes: 0 additions & 81 deletions server.go

This file was deleted.

143 changes: 0 additions & 143 deletions vm.go

This file was deleted.

0 comments on commit c8fa94d

Please sign in to comment.