Skip to content

Commit

Permalink
chore: rename module
Browse files Browse the repository at this point in the history
  • Loading branch information
boojack committed Jun 27, 2022
1 parent a62c982 commit 011fcc7
Show file tree
Hide file tree
Showing 22 changed files with 54 additions and 36 deletions.
2 changes: 1 addition & 1 deletion api/system.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package api

import "memos/server/profile"
import "github.com/usememos/memos/server/profile"

type SystemStatus struct {
Owner *User `json:"owner"`
Expand Down
8 changes: 4 additions & 4 deletions bin/server/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import (
"fmt"
"os"

"memos/server"
"memos/server/profile"
"memos/store"
DB "memos/store/db"
"github.com/usememos/memos/server"
"github.com/usememos/memos/server/profile"
"github.com/usememos/memos/store"
DB "github.com/usememos/memos/store/db"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion bin/server/main.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package main

import "memos/bin/server/cmd"
import "github.com/usememos/memos/bin/server/cmd"

func main() {
cmd.Execute()
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module memos
module github.com/usememos/memos

go 1.17

Expand Down
5 changes: 3 additions & 2 deletions server/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ package server
import (
"encoding/json"
"fmt"
"memos/api"
"memos/common"
"net/http"

"github.com/usememos/memos/api"
"github.com/usememos/memos/common"

"github.com/labstack/echo/v4"
"golang.org/x/crypto/bcrypt"
)
Expand Down
5 changes: 3 additions & 2 deletions server/basic_auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ package server

import (
"fmt"
"memos/api"
"memos/common"
"net/http"
"strconv"

"github.com/usememos/memos/api"
"github.com/usememos/memos/common"

"github.com/gorilla/sessions"
"github.com/labstack/echo-contrib/session"
"github.com/labstack/echo/v4"
Expand Down
5 changes: 3 additions & 2 deletions server/memo.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ package server
import (
"encoding/json"
"fmt"
"memos/api"
"memos/common"
"net/http"
"strconv"

"github.com/usememos/memos/api"
"github.com/usememos/memos/common"

"github.com/labstack/echo/v4"
)

Expand Down
3 changes: 2 additions & 1 deletion server/profile/profile.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ package profile

import (
"fmt"
"memos/common"
"os"
"path/filepath"
"strconv"
"strings"

"github.com/usememos/memos/common"
)

// Profile is the configuration to start main server.
Expand Down
3 changes: 2 additions & 1 deletion server/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ import (
"encoding/json"
"fmt"
"io/ioutil"
"memos/api"
"net/http"
"strconv"

"github.com/usememos/memos/api"

"github.com/labstack/echo/v4"
)

Expand Down
5 changes: 3 additions & 2 deletions server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ package server

import (
"fmt"
"memos/server/profile"
"memos/store"
"time"

"github.com/usememos/memos/server/profile"
"github.com/usememos/memos/store"

"github.com/gorilla/securecookie"
"github.com/gorilla/sessions"
"github.com/labstack/echo-contrib/session"
Expand Down
3 changes: 2 additions & 1 deletion server/shortcut.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ package server
import (
"encoding/json"
"fmt"
"memos/api"
"net/http"
"strconv"

"github.com/usememos/memos/api"

"github.com/labstack/echo/v4"
)

Expand Down
3 changes: 2 additions & 1 deletion server/system.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ package server

import (
"encoding/json"
"memos/api"
"net/http"

"github.com/usememos/memos/api"

"github.com/labstack/echo/v4"
)

Expand Down
3 changes: 2 additions & 1 deletion server/tag.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ package server

import (
"encoding/json"
"memos/api"
"net/http"
"regexp"

"github.com/usememos/memos/api"

"github.com/labstack/echo/v4"
)

Expand Down
5 changes: 3 additions & 2 deletions server/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ package server
import (
"encoding/json"
"fmt"
"memos/api"
"memos/common"
"net/http"
"strconv"

"github.com/usememos/memos/api"
"github.com/usememos/memos/common"

"github.com/labstack/echo/v4"
"golang.org/x/crypto/bcrypt"
)
Expand Down
3 changes: 2 additions & 1 deletion server/webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ import (
"encoding/json"
"fmt"
"io/ioutil"
"memos/api"
"net/http"
"strconv"

"github.com/usememos/memos/api"

"github.com/labstack/echo/v4"
)

Expand Down
5 changes: 3 additions & 2 deletions store/db/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@ import (
"errors"
"fmt"
"io/fs"
"memos/common"
"memos/server/profile"
"os"
"sort"

"github.com/usememos/memos/common"
"github.com/usememos/memos/server/profile"

_ "github.com/mattn/go-sqlite3"
)

Expand Down
5 changes: 3 additions & 2 deletions store/memo.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ package store
import (
"database/sql"
"fmt"
"memos/api"
"memos/common"
"strings"

"github.com/usememos/memos/api"
"github.com/usememos/memos/common"
)

// memoRaw is the store model for an Memo.
Expand Down
5 changes: 3 additions & 2 deletions store/memo_organizer.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ package store
import (
"database/sql"
"fmt"
"memos/api"
"memos/common"

"github.com/usememos/memos/api"
"github.com/usememos/memos/common"
)

// memoOrganizerRaw is the store model for an MemoOrganizer.
Expand Down
5 changes: 3 additions & 2 deletions store/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ package store
import (
"database/sql"
"fmt"
"memos/api"
"memos/common"
"strings"

"github.com/usememos/memos/api"
"github.com/usememos/memos/common"
)

// resourceRaw is the store model for an Resource.
Expand Down
5 changes: 3 additions & 2 deletions store/shortcut.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ package store
import (
"database/sql"
"fmt"
"memos/api"
"memos/common"
"strings"

"github.com/usememos/memos/api"
"github.com/usememos/memos/common"
)

// shortcutRaw is the store model for an Shortcut.
Expand Down
3 changes: 2 additions & 1 deletion store/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ package store

import (
"database/sql"
"memos/server/profile"

"github.com/usememos/memos/server/profile"
)

// Store provides database access to all raw objects
Expand Down
5 changes: 3 additions & 2 deletions store/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ package store
import (
"database/sql"
"fmt"
"memos/api"
"memos/common"
"strings"

"github.com/usememos/memos/api"
"github.com/usememos/memos/common"
)

// userRaw is the store model for an User.
Expand Down

0 comments on commit 011fcc7

Please sign in to comment.