wip
This commit is contained in:
@@ -7,7 +7,7 @@ import (
|
||||
"fmt"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
"local/notes-server/filetree"
|
||||
"gogs.inhome.blapointe.com/local/notes-server/filetree"
|
||||
"os"
|
||||
"path"
|
||||
"strings"
|
||||
|
||||
@@ -3,7 +3,7 @@ package notes
|
||||
import (
|
||||
"bytes"
|
||||
"io/ioutil"
|
||||
"local/notes-server/config"
|
||||
"gogs.inhome.blapointe.com/local/notes-server/config"
|
||||
"os"
|
||||
"path"
|
||||
"strings"
|
||||
|
||||
@@ -2,7 +2,7 @@ package notes
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"local/notes-server/filetree"
|
||||
"gogs.inhome.blapointe.com/local/notes-server/filetree"
|
||||
"path"
|
||||
)
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package notes
|
||||
|
||||
import (
|
||||
"local/notes-server/config"
|
||||
"gogs.inhome.blapointe.com/local/notes-server/config"
|
||||
"testing"
|
||||
)
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ package notes
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"local/notes-server/filetree"
|
||||
"gogs.inhome.blapointe.com/local/notes-server/filetree"
|
||||
"os"
|
||||
)
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ package notes
|
||||
|
||||
import (
|
||||
"io/ioutil"
|
||||
"local/notes-server/config"
|
||||
"gogs.inhome.blapointe.com/local/notes-server/config"
|
||||
"os"
|
||||
"path"
|
||||
"testing"
|
||||
|
||||
@@ -3,7 +3,7 @@ package notes
|
||||
import (
|
||||
"errors"
|
||||
"io/ioutil"
|
||||
"local/notes-server/filetree"
|
||||
"gogs.inhome.blapointe.com/local/notes-server/filetree"
|
||||
)
|
||||
|
||||
func (n *Notes) Dir(urlPath string) (string, string, error) {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package notes
|
||||
|
||||
import (
|
||||
"local/notes-server/config"
|
||||
"gogs.inhome.blapointe.com/local/notes-server/config"
|
||||
"testing"
|
||||
)
|
||||
|
||||
|
||||
@@ -4,8 +4,8 @@ import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"local/notes-server/filetree"
|
||||
"local/notes-server/notes/editor"
|
||||
"gogs.inhome.blapointe.com/local/notes-server/filetree"
|
||||
"gogs.inhome.blapointe.com/local/notes-server/notes/editor"
|
||||
"strings"
|
||||
)
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package notes
|
||||
|
||||
import (
|
||||
"local/notes-server/config"
|
||||
"gogs.inhome.blapointe.com/local/notes-server/config"
|
||||
"strings"
|
||||
"testing"
|
||||
)
|
||||
|
||||
@@ -7,8 +7,8 @@ import (
|
||||
"fmt"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
"local/notes-server/filetree"
|
||||
"local/notes-server/notes/md"
|
||||
"gogs.inhome.blapointe.com/local/notes-server/filetree"
|
||||
"gogs.inhome.blapointe.com/local/notes-server/notes/md"
|
||||
"path"
|
||||
"regexp"
|
||||
"strings"
|
||||
|
||||
@@ -3,7 +3,7 @@ package notes
|
||||
import (
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"local/notes-server/config"
|
||||
"gogs.inhome.blapointe.com/local/notes-server/config"
|
||||
"os"
|
||||
"path"
|
||||
"strings"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
module local/notes-server/notes/md
|
||||
module gogs.inhome.blapointe.com/local/notes-server/notes/md
|
||||
|
||||
go 1.18
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package notes
|
||||
|
||||
import "local/notes-server/config"
|
||||
import "gogs.inhome.blapointe.com/local/notes-server/config"
|
||||
|
||||
type Notes struct {
|
||||
root string
|
||||
|
||||
@@ -4,7 +4,7 @@ import (
|
||||
"bufio"
|
||||
"errors"
|
||||
"io"
|
||||
"local/notes-server/filetree"
|
||||
"gogs.inhome.blapointe.com/local/notes-server/filetree"
|
||||
"log"
|
||||
"os"
|
||||
"path"
|
||||
|
||||
@@ -45,7 +45,7 @@ func TestSearch(t *testing.T) {
|
||||
|
||||
func TestSearchBigFiles(t *testing.T) {
|
||||
n := New()
|
||||
n.root = "/usr/local/bin"
|
||||
n.root = "/usr/gogs.inhome.blapointe.com/local/bin"
|
||||
|
||||
_, err := n.Search("this file")
|
||||
if err != nil {
|
||||
|
||||
@@ -2,7 +2,7 @@ package notes
|
||||
|
||||
import (
|
||||
"io/ioutil"
|
||||
"local/notes-server/filetree"
|
||||
"gogs.inhome.blapointe.com/local/notes-server/filetree"
|
||||
"os"
|
||||
"path"
|
||||
)
|
||||
|
||||
@@ -2,7 +2,7 @@ package notes
|
||||
|
||||
import (
|
||||
"io/ioutil"
|
||||
"local/notes-server/config"
|
||||
"gogs.inhome.blapointe.com/local/notes-server/config"
|
||||
"os"
|
||||
"testing"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user