Commit 011fcc7d authored by boojack's avatar boojack

chore: rename module

parent a62c982a
package api
import "memos/server/profile"
import "github.com/usememos/memos/server/profile"
type SystemStatus struct {
Owner *User `json:"owner"`
......
......@@ -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 (
......
package main
import "memos/bin/server/cmd"
import "github.com/usememos/memos/bin/server/cmd"
func main() {
cmd.Execute()
......
module memos
module github.com/usememos/memos
go 1.17
......
......@@ -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"
)
......
......@@ -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"
......
......@@ -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"
)
......
......@@ -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.
......
......@@ -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"
)
......
......@@ -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"
......
......@@ -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"
)
......
......@@ -2,9 +2,10 @@ package server
import (
"encoding/json"
"memos/api"
"net/http"
"github.com/usememos/memos/api"
"github.com/labstack/echo/v4"
)
......
......@@ -2,10 +2,11 @@ package server
import (
"encoding/json"
"memos/api"
"net/http"
"regexp"
"github.com/usememos/memos/api"
"github.com/labstack/echo/v4"
)
......
......@@ -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"
)
......
......@@ -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"
)
......
......@@ -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"
)
......
......@@ -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.
......
......@@ -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.
......
......@@ -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.
......
......@@ -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.
......
......@@ -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
......
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment