diff options
| -rw-r--r-- | main.go | 19 | ||||
| -rw-r--r-- | static/index.html | 1 |
2 files changed, 14 insertions, 6 deletions
@@ -4,6 +4,7 @@ import ( "com.teddywing/new-house-on-the-block/vendor/_nuts/github.com/fabioberger/coinbase-go" "fmt" "log" + "net/http" "os" ) @@ -28,10 +29,16 @@ func sendMoney(from string, to string, amount string) (transaction_id string, er } func main() { - transaction_id, err := sendMoney("TODO", "n2Qd6da1jiFgij5SSncFKh7MoFN74GdUxv", "0.0001") - if err != nil { - log.Println(err) - } else { - fmt.Println(transaction_id) - } + // transaction_id, err := sendMoney("TODO", "n2Qd6da1jiFgij5SSncFKh7MoFN74GdUxv", "0.0001") + // if err != nil { + // log.Println(err) + // } else { + // fmt.Println(transaction_id) + // } + + fs := http.FileServer(http.Dir("static")) + http.Handle("/", fs) + + log.Println("Listening on port 3000") + http.ListenAndServe(":3000", nil) } diff --git a/static/index.html b/static/index.html new file mode 100644 index 0000000..557db03 --- /dev/null +++ b/static/index.html @@ -0,0 +1 @@ +Hello World |
