removing exception dep, saving blank canvas on checkRanges err
This commit is contained in:
parent
a3605addc2
commit
d88ba0ead3
3 changed files with 6 additions and 5 deletions
|
|
@ -1,6 +1,7 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"log"
|
||||
"net/http"
|
||||
|
||||
"github.com/wcharczuk/go-chart"
|
||||
|
|
@ -38,5 +39,5 @@ func drawChartWide(res http.ResponseWriter, req *http.Request) {
|
|||
func main() {
|
||||
http.HandleFunc("/", drawChart)
|
||||
http.HandleFunc("/wide", drawChartWide)
|
||||
http.ListenAndServe(":8080", nil)
|
||||
log.Fatal(http.ListenAndServe(":8080", nil))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue