commit 5b7e4e211a64c05b21ef9111013ef40e13b45a3b
parent 5d8a7e046625a5551aacbb3f40b8b94e87a859b7
Author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
Date: Wed, 12 Jan 2022 00:06:05 +0100
gofmt
Diffstat:
5 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/crypto/crypto.go b/crypto/crypto.go
@@ -1,12 +1,12 @@
package crypto
import (
+ "cerca/util"
"crypto/ed25519"
crand "crypto/rand"
"encoding/binary"
"encoding/json"
"fmt"
- "cerca/util"
"github.com/synacor/argon2id"
rand "math/rand"
)
diff --git a/database/database.go b/database/database.go
@@ -1,10 +1,10 @@
package database
import (
+ "cerca/util"
"context"
"database/sql"
"fmt"
- "cerca/util"
"html/template"
"log"
"net/url"
diff --git a/run.go b/run.go
@@ -1,10 +1,10 @@
package main
import (
- "flag"
- "fmt"
"cerca/server"
"cerca/util"
+ "flag"
+ "fmt"
"os"
"strings"
)
diff --git a/server/server.go b/server/server.go
@@ -364,7 +364,7 @@ func (h RequestHandler) AboutRoute(res http.ResponseWriter, req *http.Request) {
}
func (h RequestHandler) RobotsRoute(res http.ResponseWriter, req *http.Request) {
- fmt.Fprintln(res, "User-agent: *\nDisallow: /")
+ fmt.Fprintln(res, "User-agent: *\nDisallow: /")
}
func (h RequestHandler) NewThreadRoute(res http.ResponseWriter, req *http.Request) {
diff --git a/server/session/session.go b/server/session/session.go
@@ -27,9 +27,9 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
import (
+ "cerca/util"
"errors"
"fmt"
- "cerca/util"
"net/http"
"github.com/gorilla/sessions"