Page MenuHomeMusing Studio

No OneTemporary

diff --git a/author/author.go b/author/author.go
index a95eb61..0c2ea57 100644
--- a/author/author.go
+++ b/author/author.go
@@ -11,11 +11,12 @@
package author
import (
- "github.com/writeas/web-core/log"
- "github.com/writefreely/writefreely/config"
"os"
"path/filepath"
"regexp"
+
+ "github.com/writeas/web-core/log"
+ "github.com/writefreely/writefreely/config"
)
// Regex pattern for valid usernames
diff --git a/config/funcs.go b/config/funcs.go
index 7c6fd4f..3bbcfa7 100644
--- a/config/funcs.go
+++ b/config/funcs.go
@@ -11,12 +11,13 @@
package config
import (
- "github.com/writeas/web-core/log"
- "golang.org/x/net/idna"
"net/http"
"net/url"
"strings"
"time"
+
+ "github.com/writeas/web-core/log"
+ "golang.org/x/net/idna"
)
// FriendlyHost returns the app's Host sans any schema
diff --git a/database-sqlite.go b/database-sqlite.go
index 7d33315..c34bca2 100644
--- a/database-sqlite.go
+++ b/database-sqlite.go
@@ -15,10 +15,11 @@ package writefreely
import (
"database/sql"
+ "regexp"
+
"github.com/go-sql-driver/mysql"
"github.com/mattn/go-sqlite3"
"github.com/writeas/web-core/log"
- "regexp"
)
func init() {
diff --git a/database_activitypub.go b/database_activitypub.go
index 9df3724..b832d37 100644
--- a/database_activitypub.go
+++ b/database_activitypub.go
@@ -13,6 +13,7 @@ package writefreely
import (
"database/sql"
"fmt"
+
"github.com/writeas/web-core/activitystreams"
"github.com/writeas/web-core/log"
)
diff --git a/database_test.go b/database_test.go
index c114077..fc0523c 100644
--- a/database_test.go
+++ b/database_test.go
@@ -3,8 +3,9 @@ package writefreely
import (
"context"
"database/sql"
- "github.com/stretchr/testify/assert"
"testing"
+
+ "github.com/stretchr/testify/assert"
)
func TestOAuthDatastore(t *testing.T) {
diff --git a/db/create_test.go b/db/create_test.go
index 369d5c1..b971bdf 100644
--- a/db/create_test.go
+++ b/db/create_test.go
@@ -1,8 +1,9 @@
package db
import (
- "github.com/stretchr/testify/assert"
"testing"
+
+ "github.com/stretchr/testify/assert"
)
func TestDialect_Column(t *testing.T) {
diff --git a/email.go b/email.go
index 5651bee..e5283a9 100644
--- a/email.go
+++ b/email.go
@@ -15,7 +15,6 @@ import (
"database/sql"
"encoding/json"
"fmt"
- "github.com/writefreely/writefreely/mailer"
"html/template"
"net/http"
"strings"
@@ -28,6 +27,7 @@ import (
"github.com/writeas/web-core/data"
"github.com/writeas/web-core/log"
"github.com/writefreely/writefreely/key"
+ "github.com/writefreely/writefreely/mailer"
"github.com/writefreely/writefreely/spam"
)
diff --git a/jobs.go b/jobs.go
index 251b82d..02fcfeb 100644
--- a/jobs.go
+++ b/jobs.go
@@ -1,8 +1,9 @@
package writefreely
import (
- "github.com/writeas/web-core/log"
"time"
+
+ "github.com/writeas/web-core/log"
)
type PostJob struct {
diff --git a/keys.go b/keys.go
index b5896f7..fa2adb5 100644
--- a/keys.go
+++ b/keys.go
@@ -11,10 +11,11 @@
package writefreely
import (
- "github.com/writeas/web-core/log"
- "github.com/writefreely/writefreely/key"
"os"
"path/filepath"
+
+ "github.com/writeas/web-core/log"
+ "github.com/writefreely/writefreely/key"
)
const (
diff --git a/mailer/mailer.go b/mailer/mailer.go
index 30892e6..a08643c 100644
--- a/mailer/mailer.go
+++ b/mailer/mailer.go
@@ -12,11 +12,12 @@ package mailer
import (
"fmt"
+ "strings"
+
"github.com/mailgun/mailgun-go"
"github.com/writeas/web-core/log"
"github.com/writefreely/writefreely/config"
mail "github.com/xhit/go-simple-mail/v2"
- "strings"
)
type (
diff --git a/main_test.go b/main_test.go
index 9db7a7e..4d28143 100644
--- a/main_test.go
+++ b/main_test.go
@@ -6,13 +6,14 @@ import (
"encoding/gob"
"errors"
"fmt"
- uuid "github.com/nu7hatch/gouuid"
- "github.com/stretchr/testify/assert"
"math/rand"
"os"
"strings"
"testing"
"time"
+
+ uuid "github.com/nu7hatch/gouuid"
+ "github.com/stretchr/testify/assert"
)
var testDB *sql.DB
diff --git a/monetization.go b/monetization.go
index 4d6b42b..05e81db 100644
--- a/monetization.go
+++ b/monetization.go
@@ -13,14 +13,15 @@ package writefreely
import (
"bytes"
"fmt"
- "github.com/gorilla/mux"
- "github.com/writeas/impart"
- "github.com/writeas/web-core/log"
"io"
"net/http"
"net/url"
"os"
"strings"
+
+ "github.com/gorilla/mux"
+ "github.com/writeas/impart"
+ "github.com/writeas/web-core/log"
)
func displayMonetization(monetization, alias string) string {
diff --git a/nodeinfo.go b/nodeinfo.go
index 5a38d96..608aa74 100644
--- a/nodeinfo.go
+++ b/nodeinfo.go
@@ -11,10 +11,11 @@
package writefreely
import (
+ "strings"
+
"github.com/writeas/web-core/log"
"github.com/writefreely/go-nodeinfo"
"github.com/writefreely/writefreely/config"
- "strings"
)
type nodeInfoResolver struct {
diff --git a/oauth_generic.go b/oauth_generic.go
index 36f166c..6fa09d7 100644
--- a/oauth_generic.go
+++ b/oauth_generic.go
@@ -14,10 +14,11 @@ import (
"context"
"errors"
"fmt"
- "github.com/writeas/web-core/log"
"net/http"
"net/url"
"strings"
+
+ "github.com/writeas/web-core/log"
)
type genericOauthClient struct {
diff --git a/oauth_gitea.go b/oauth_gitea.go
index 3ecd4a7..249007f 100644
--- a/oauth_gitea.go
+++ b/oauth_gitea.go
@@ -4,10 +4,11 @@ import (
"context"
"errors"
"fmt"
- "github.com/writeas/web-core/log"
"net/http"
"net/url"
"strings"
+
+ "github.com/writeas/web-core/log"
)
type giteaOauthClient struct {
diff --git a/oauth_signup.go b/oauth_signup.go
index b9b52c5..b5f881b 100644
--- a/oauth_signup.go
+++ b/oauth_signup.go
@@ -14,14 +14,15 @@ import (
"crypto/sha256"
"encoding/hex"
"fmt"
- "github.com/writeas/impart"
- "github.com/writeas/web-core/auth"
- "github.com/writeas/web-core/log"
- "github.com/writefreely/writefreely/page"
"html/template"
"net/http"
"strings"
"time"
+
+ "github.com/writeas/impart"
+ "github.com/writeas/web-core/auth"
+ "github.com/writeas/web-core/log"
+ "github.com/writefreely/writefreely/page"
)
type viewOauthSignupVars struct {
diff --git a/oauth_slack.go b/oauth_slack.go
index 40f50e4..d18564a 100644
--- a/oauth_slack.go
+++ b/oauth_slack.go
@@ -13,10 +13,11 @@ package writefreely
import (
"context"
"errors"
- "github.com/gosimple/slug"
"net/http"
"net/url"
"strings"
+
+ "github.com/gosimple/slug"
)
type slackOauthClient struct {
diff --git a/oauth_test.go b/oauth_test.go
index 1bd0bfc..326e7ed 100644
--- a/oauth_test.go
+++ b/oauth_test.go
@@ -13,16 +13,17 @@ package writefreely
import (
"context"
"fmt"
- "github.com/gorilla/sessions"
- "github.com/stretchr/testify/assert"
- "github.com/writeas/impart"
- "github.com/writeas/web-core/id"
- "github.com/writefreely/writefreely/config"
"net/http"
"net/http/httptest"
"net/url"
"strings"
"testing"
+
+ "github.com/gorilla/sessions"
+ "github.com/stretchr/testify/assert"
+ "github.com/writeas/impart"
+ "github.com/writeas/web-core/id"
+ "github.com/writefreely/writefreely/config"
)
type MockOAuthDatastoreProvider struct {
diff --git a/page/page.go b/page/page.go
index 5ab7750..057f034 100644
--- a/page/page.go
+++ b/page/page.go
@@ -12,8 +12,9 @@
package page
import (
- "github.com/writefreely/writefreely/config"
"strings"
+
+ "github.com/writefreely/writefreely/config"
)
type StaticPage struct {
diff --git a/pages.go b/pages.go
index 6ebc3dc..d835545 100644
--- a/pages.go
+++ b/pages.go
@@ -12,8 +12,9 @@ package writefreely
import (
"database/sql"
- "github.com/writefreely/writefreely/config"
"time"
+
+ "github.com/writefreely/writefreely/config"
)
var defaultPageUpdatedTime = time.Date(2018, 11, 8, 12, 0, 0, 0, time.Local)
diff --git a/parse/posts.go b/parse/posts.go
index 5a39a8d..d28c5fd 100644
--- a/parse/posts.go
+++ b/parse/posts.go
@@ -12,9 +12,10 @@
package parse
import (
- "github.com/writeas/web-core/stringmanip"
"regexp"
"strings"
+
+ "github.com/writeas/web-core/stringmanip"
)
var (
diff --git a/session.go b/session.go
index 03d3963..9f8bbba 100644
--- a/session.go
+++ b/session.go
@@ -12,10 +12,11 @@ package writefreely
import (
"encoding/gob"
- "github.com/gorilla/sessions"
- "github.com/writeas/web-core/log"
"net/http"
"strings"
+
+ "github.com/gorilla/sessions"
+ "github.com/writeas/web-core/log"
)
const (
diff --git a/spam/email.go b/spam/email.go
index de017ab..ca8ac94 100644
--- a/spam/email.go
+++ b/spam/email.go
@@ -11,8 +11,9 @@
package spam
import (
- "github.com/writeas/web-core/id"
"strings"
+
+ "github.com/writeas/web-core/id"
)
var honeypotField string
diff --git a/updates.go b/updates.go
index e29e13b..791f245 100644
--- a/updates.go
+++ b/updates.go
@@ -11,12 +11,13 @@
package writefreely
import (
- "github.com/writeas/web-core/log"
"io"
"net/http"
"strings"
"sync"
"time"
+
+ "github.com/writeas/web-core/log"
)
// updatesCacheTime is the default interval between cache updates for new

File Metadata

Mime Type
text/x-diff
Expires
Tue, Feb 10, 8:45 PM (8 h, 1 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3623293

Event Timeline