log
This commit is contained in:
0
.gitignore
vendored
Normal file → Executable file
0
.gitignore
vendored
Normal file → Executable file
0
balance.go
Normal file → Executable file
0
balance.go
Normal file → Executable file
0
ledger_test.go
Normal file → Executable file
0
ledger_test.go
Normal file → Executable file
2
main.go
Normal file → Executable file
2
main.go
Normal file → Executable file
@@ -3,6 +3,7 @@ package main
|
|||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"local/args"
|
"local/args"
|
||||||
|
"log"
|
||||||
"net/http"
|
"net/http"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -18,6 +19,7 @@ func main() {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
|
log.Println("listening on", as.GetInt("p"))
|
||||||
if err := http.ListenAndServe(":"+fmt.Sprint(as.GetInt("p")), Server{ledger: ledger, debug: as.GetBool("debug")}); err != nil {
|
if err := http.ListenAndServe(":"+fmt.Sprint(as.GetInt("p")), Server{ledger: ledger, debug: as.GetBool("debug")}); err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
|
|||||||
0
public/balances.json
Normal file → Executable file
0
public/balances.json
Normal file → Executable file
0
public/index.html
Normal file → Executable file
0
public/index.html
Normal file → Executable file
0
testdata/ledger-groceries-custom.dat
vendored
Normal file → Executable file
0
testdata/ledger-groceries-custom.dat
vendored
Normal file → Executable file
0
testdata/ledger.dat
vendored
Normal file → Executable file
0
testdata/ledger.dat
vendored
Normal file → Executable file
0
testdata/ledger.json
vendored
Normal file → Executable file
0
testdata/ledger.json
vendored
Normal file → Executable file
0
transaction.go
Normal file → Executable file
0
transaction.go
Normal file → Executable file
0
transaction_test.go
Normal file → Executable file
0
transaction_test.go
Normal file → Executable file
Reference in New Issue
Block a user