@@ 24,9 24,9 @@ import (
"os"
"strconv"
+ "github.com/georgysavva/scany/pgxscan"
"github.com/gorilla/mux"
"github.com/jackc/pgx/v4/pgxpool"
- "github.com/georgysavva/scany/pgxscan"
)
type Paste struct {
@@ 35,9 35,9 @@ type Paste struct {
}
type PublicPaste struct {
- Id int
+ Id int
Summary string
- Link string
+ Link string
}
func main() {
@@ 129,8 129,8 @@ func main() {
/// Not found page
r.PathPrefix("/").HandlerFunc(func(w http.ResponseWriter, req *http.Request) {
- w.WriteHeader(404)
- tmpl.ExecuteTemplate(w, "not-found", nil)
+ w.WriteHeader(404)
+ tmpl.ExecuteTemplate(w, "not-found", nil)
})
log.Printf("Staring on port %s\n", port)