chore: rename module

pull/94/head
boojack 3 years ago
parent a62c982a3d
commit 011fcc7dd4

@ -1,6 +1,6 @@
package api package api
import "memos/server/profile" import "github.com/usememos/memos/server/profile"
type SystemStatus struct { type SystemStatus struct {
Owner *User `json:"owner"` Owner *User `json:"owner"`

@ -4,10 +4,10 @@ import (
"fmt" "fmt"
"os" "os"
"memos/server" "github.com/usememos/memos/server"
"memos/server/profile" "github.com/usememos/memos/server/profile"
"memos/store" "github.com/usememos/memos/store"
DB "memos/store/db" DB "github.com/usememos/memos/store/db"
) )
const ( const (

@ -1,6 +1,6 @@
package main package main
import "memos/bin/server/cmd" import "github.com/usememos/memos/bin/server/cmd"
func main() { func main() {
cmd.Execute() cmd.Execute()

@ -1,4 +1,4 @@
module memos module github.com/usememos/memos
go 1.17 go 1.17

@ -3,10 +3,11 @@ package server
import ( import (
"encoding/json" "encoding/json"
"fmt" "fmt"
"memos/api"
"memos/common"
"net/http" "net/http"
"github.com/usememos/memos/api"
"github.com/usememos/memos/common"
"github.com/labstack/echo/v4" "github.com/labstack/echo/v4"
"golang.org/x/crypto/bcrypt" "golang.org/x/crypto/bcrypt"
) )

@ -2,11 +2,12 @@ package server
import ( import (
"fmt" "fmt"
"memos/api"
"memos/common"
"net/http" "net/http"
"strconv" "strconv"
"github.com/usememos/memos/api"
"github.com/usememos/memos/common"
"github.com/gorilla/sessions" "github.com/gorilla/sessions"
"github.com/labstack/echo-contrib/session" "github.com/labstack/echo-contrib/session"
"github.com/labstack/echo/v4" "github.com/labstack/echo/v4"

@ -3,11 +3,12 @@ package server
import ( import (
"encoding/json" "encoding/json"
"fmt" "fmt"
"memos/api"
"memos/common"
"net/http" "net/http"
"strconv" "strconv"
"github.com/usememos/memos/api"
"github.com/usememos/memos/common"
"github.com/labstack/echo/v4" "github.com/labstack/echo/v4"
) )

@ -2,11 +2,12 @@ package profile
import ( import (
"fmt" "fmt"
"memos/common"
"os" "os"
"path/filepath" "path/filepath"
"strconv" "strconv"
"strings" "strings"
"github.com/usememos/memos/common"
) )
// Profile is the configuration to start main server. // Profile is the configuration to start main server.

@ -4,10 +4,11 @@ import (
"encoding/json" "encoding/json"
"fmt" "fmt"
"io/ioutil" "io/ioutil"
"memos/api"
"net/http" "net/http"
"strconv" "strconv"
"github.com/usememos/memos/api"
"github.com/labstack/echo/v4" "github.com/labstack/echo/v4"
) )

@ -2,10 +2,11 @@ package server
import ( import (
"fmt" "fmt"
"memos/server/profile"
"memos/store"
"time" "time"
"github.com/usememos/memos/server/profile"
"github.com/usememos/memos/store"
"github.com/gorilla/securecookie" "github.com/gorilla/securecookie"
"github.com/gorilla/sessions" "github.com/gorilla/sessions"
"github.com/labstack/echo-contrib/session" "github.com/labstack/echo-contrib/session"

@ -3,10 +3,11 @@ package server
import ( import (
"encoding/json" "encoding/json"
"fmt" "fmt"
"memos/api"
"net/http" "net/http"
"strconv" "strconv"
"github.com/usememos/memos/api"
"github.com/labstack/echo/v4" "github.com/labstack/echo/v4"
) )

@ -2,9 +2,10 @@ package server
import ( import (
"encoding/json" "encoding/json"
"memos/api"
"net/http" "net/http"
"github.com/usememos/memos/api"
"github.com/labstack/echo/v4" "github.com/labstack/echo/v4"
) )

@ -2,10 +2,11 @@ package server
import ( import (
"encoding/json" "encoding/json"
"memos/api"
"net/http" "net/http"
"regexp" "regexp"
"github.com/usememos/memos/api"
"github.com/labstack/echo/v4" "github.com/labstack/echo/v4"
) )

@ -3,11 +3,12 @@ package server
import ( import (
"encoding/json" "encoding/json"
"fmt" "fmt"
"memos/api"
"memos/common"
"net/http" "net/http"
"strconv" "strconv"
"github.com/usememos/memos/api"
"github.com/usememos/memos/common"
"github.com/labstack/echo/v4" "github.com/labstack/echo/v4"
"golang.org/x/crypto/bcrypt" "golang.org/x/crypto/bcrypt"
) )

@ -4,10 +4,11 @@ import (
"encoding/json" "encoding/json"
"fmt" "fmt"
"io/ioutil" "io/ioutil"
"memos/api"
"net/http" "net/http"
"strconv" "strconv"
"github.com/usememos/memos/api"
"github.com/labstack/echo/v4" "github.com/labstack/echo/v4"
) )

@ -6,11 +6,12 @@ import (
"errors" "errors"
"fmt" "fmt"
"io/fs" "io/fs"
"memos/common"
"memos/server/profile"
"os" "os"
"sort" "sort"
"github.com/usememos/memos/common"
"github.com/usememos/memos/server/profile"
_ "github.com/mattn/go-sqlite3" _ "github.com/mattn/go-sqlite3"
) )

@ -3,9 +3,10 @@ package store
import ( import (
"database/sql" "database/sql"
"fmt" "fmt"
"memos/api"
"memos/common"
"strings" "strings"
"github.com/usememos/memos/api"
"github.com/usememos/memos/common"
) )
// memoRaw is the store model for an Memo. // memoRaw is the store model for an Memo.

@ -3,8 +3,9 @@ package store
import ( import (
"database/sql" "database/sql"
"fmt" "fmt"
"memos/api"
"memos/common" "github.com/usememos/memos/api"
"github.com/usememos/memos/common"
) )
// memoOrganizerRaw is the store model for an MemoOrganizer. // memoOrganizerRaw is the store model for an MemoOrganizer.

@ -3,9 +3,10 @@ package store
import ( import (
"database/sql" "database/sql"
"fmt" "fmt"
"memos/api"
"memos/common"
"strings" "strings"
"github.com/usememos/memos/api"
"github.com/usememos/memos/common"
) )
// resourceRaw is the store model for an Resource. // resourceRaw is the store model for an Resource.

@ -3,9 +3,10 @@ package store
import ( import (
"database/sql" "database/sql"
"fmt" "fmt"
"memos/api"
"memos/common"
"strings" "strings"
"github.com/usememos/memos/api"
"github.com/usememos/memos/common"
) )
// shortcutRaw is the store model for an Shortcut. // shortcutRaw is the store model for an Shortcut.

@ -2,7 +2,8 @@ package store
import ( import (
"database/sql" "database/sql"
"memos/server/profile"
"github.com/usememos/memos/server/profile"
) )
// Store provides database access to all raw objects // Store provides database access to all raw objects

@ -3,9 +3,10 @@ package store
import ( import (
"database/sql" "database/sql"
"fmt" "fmt"
"memos/api"
"memos/common"
"strings" "strings"
"github.com/usememos/memos/api"
"github.com/usememos/memos/common"
) )
// userRaw is the store model for an User. // userRaw is the store model for an User.

Loading…
Cancel
Save