This commit is contained in:
Bel LaPointe
2023-04-10 11:09:40 -06:00
parent b495652eb9
commit 6a82a7d90c
43 changed files with 61 additions and 78 deletions

View File

@@ -7,7 +7,7 @@ import (
"fmt"
"io"
"io/ioutil"
"local/notes-server/filetree"
"gogs.inhome.blapointe.com/local/notes-server/filetree"
"os"
"path"
"strings"

View File

@@ -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"

View File

@@ -2,7 +2,7 @@ package notes
import (
"errors"
"local/notes-server/filetree"
"gogs.inhome.blapointe.com/local/notes-server/filetree"
"path"
)

View File

@@ -1,7 +1,7 @@
package notes
import (
"local/notes-server/config"
"gogs.inhome.blapointe.com/local/notes-server/config"
"testing"
)

View File

@@ -2,7 +2,7 @@ package notes
import (
"fmt"
"local/notes-server/filetree"
"gogs.inhome.blapointe.com/local/notes-server/filetree"
"os"
)

View File

@@ -2,7 +2,7 @@ package notes
import (
"io/ioutil"
"local/notes-server/config"
"gogs.inhome.blapointe.com/local/notes-server/config"
"os"
"path"
"testing"

View File

@@ -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) {

View File

@@ -1,7 +1,7 @@
package notes
import (
"local/notes-server/config"
"gogs.inhome.blapointe.com/local/notes-server/config"
"testing"
)

View File

@@ -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"
)

View File

@@ -1,7 +1,7 @@
package notes
import (
"local/notes-server/config"
"gogs.inhome.blapointe.com/local/notes-server/config"
"strings"
"testing"
)

View File

@@ -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"

View File

@@ -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"

View File

@@ -1,4 +1,4 @@
module local/notes-server/notes/md
module gogs.inhome.blapointe.com/local/notes-server/notes/md
go 1.18

View File

@@ -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

View File

@@ -4,7 +4,7 @@ import (
"bufio"
"errors"
"io"
"local/notes-server/filetree"
"gogs.inhome.blapointe.com/local/notes-server/filetree"
"log"
"os"
"path"

View File

@@ -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 {

View File

@@ -2,7 +2,7 @@ package notes
import (
"io/ioutil"
"local/notes-server/filetree"
"gogs.inhome.blapointe.com/local/notes-server/filetree"
"os"
"path"
)

View File

@@ -2,7 +2,7 @@ package notes
import (
"io/ioutil"
"local/notes-server/config"
"gogs.inhome.blapointe.com/local/notes-server/config"
"os"
"testing"
)