Skip to content

Commit

Permalink
Remove C++ project and use Go as alternative
Browse files Browse the repository at this point in the history
  • Loading branch information
fahminlb33 committed Jan 29, 2022
1 parent e630217 commit 3a2f816
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 329 deletions.
167 changes: 0 additions & 167 deletions src/KFserver/KFserver.vcxproj

This file was deleted.

38 changes: 0 additions & 38 deletions src/KFserver/KFserver.vcxproj.filters

This file was deleted.

110 changes: 0 additions & 110 deletions src/KFserver/Resource.rc

This file was deleted.

18 changes: 18 additions & 0 deletions src/KFserver/kfserver.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package main

import (
"flag"
"log"
"net/http"
)

func main() {
port := flag.String("p", "8080", "port to serve on")
directory := flag.String("d", ".", "the directory of static file to host")
flag.Parse()

http.Handle("/", http.FileServer(http.Dir(*directory)))

log.Printf("Serving %s on HTTP port: %s\n", *directory, *port)
log.Fatal(http.ListenAndServe(":"+*port, nil))
}
14 changes: 0 additions & 14 deletions src/KFserver/resource.h

This file was deleted.

0 comments on commit 3a2f816

Please sign in to comment.