to go mod

This commit is contained in:
Bel LaPointe
2023-04-10 10:28:55 -06:00
parent 0fb275cce8
commit 1f1efc2133
21 changed files with 86 additions and 99 deletions

View File

@@ -2,7 +2,7 @@ package notes
import (
"html"
"local/notes-server/filetree"
"gogs.inhome.blapointe.com/local/notes-server/filetree"
"net/http"
"path"
"strings"

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

@@ -1,10 +1,10 @@
package server
import (
"local/firestormy/config"
"local/firestormy/config/ns"
"local/firestormy/scheduler"
"local/logb"
"gogs.inhome.blapointe.com/local/firestormy/config"
"gogs.inhome.blapointe.com/local/firestormy/config/ns"
"gogs.inhome.blapointe.com/local/firestormy/scheduler"
"gogs.inhome.blapointe.com/local/logb"
"net/http"
"strings"
)

View File

@@ -1,10 +1,10 @@
package server
import (
"local/firestormy/config"
"local/firestormy/config/ns"
"local/firestormy/scheduler"
"local/logb"
"gogs.inhome.blapointe.com/local/firestormy/config"
"gogs.inhome.blapointe.com/local/firestormy/config/ns"
"gogs.inhome.blapointe.com/local/firestormy/scheduler"
"gogs.inhome.blapointe.com/local/logb"
"net/http"
"strings"
)

View File

@@ -2,10 +2,10 @@ package server
import (
"encoding/json"
"local/firestormy/config"
"local/firestormy/config/ns"
"local/firestormy/scheduler"
"local/logb"
"gogs.inhome.blapointe.com/local/firestormy/config"
"gogs.inhome.blapointe.com/local/firestormy/config/ns"
"gogs.inhome.blapointe.com/local/firestormy/scheduler"
"gogs.inhome.blapointe.com/local/logb"
"net/http"
"strings"
)

View File

@@ -1,10 +1,11 @@
package server
import (
"local/firestormy/config"
"local/firestormy/config/ns"
"local/firestormy/scheduler"
"time"
"gogs.inhome.blapointe.com/local/firestormy/config"
"gogs.inhome.blapointe.com/local/firestormy/config/ns"
"gogs.inhome.blapointe.com/local/firestormy/scheduler"
)
func toMap(j *scheduler.Job, output bool) map[string]interface{} {
@@ -26,8 +27,8 @@ func toMap(j *scheduler.Job, output bool) map[string]interface{} {
"status": j.LastStatus,
}
if output {
"output": j.LastOutput,
"status": j.LastStatus,
out["output"] = j.LastOutput
out["status"] = j.LastStatus
}
return out
}

View File

@@ -2,10 +2,10 @@ package server
import (
"encoding/json"
"local/firestormy/config"
"local/firestormy/config/ns"
"local/firestormy/scheduler"
"local/logb"
"gogs.inhome.blapointe.com/local/firestormy/config"
"gogs.inhome.blapointe.com/local/firestormy/config/ns"
"gogs.inhome.blapointe.com/local/firestormy/scheduler"
"gogs.inhome.blapointe.com/local/logb"
"net/http"
"sort"
)

View File

@@ -2,7 +2,7 @@ package server
import (
"fmt"
"local/router"
"gogs.inhome.blapointe.com/local/router"
"net/http"
)

View File

@@ -1,10 +1,10 @@
package server
import (
"local/firestormy/config"
"local/firestormy/config/ns"
"local/firestormy/scheduler"
"local/logb"
"gogs.inhome.blapointe.com/local/firestormy/config"
"gogs.inhome.blapointe.com/local/firestormy/config/ns"
"gogs.inhome.blapointe.com/local/firestormy/scheduler"
"gogs.inhome.blapointe.com/local/logb"
"net/http"
"strings"
)

View File

@@ -1,10 +1,10 @@
package server
import (
"local/firestormy/config"
"local/gziphttp"
"local/oauth2/oauth2client"
"local/router"
"gogs.inhome.blapointe.com/local/firestormy/config"
"gogs.inhome.blapointe.com/local/gziphttp"
"gogs.inhome.blapointe.com/local/oauth2/oauth2client"
"gogs.inhome.blapointe.com/local/router"
"log"
"net/http"
"path/filepath"

View File

@@ -5,10 +5,10 @@ import (
"errors"
"fmt"
"io"
"local/firestormy/config"
"local/firestormy/config/ns"
"local/firestormy/scheduler"
"local/logb"
"gogs.inhome.blapointe.com/local/firestormy/config"
"gogs.inhome.blapointe.com/local/firestormy/config/ns"
"gogs.inhome.blapointe.com/local/firestormy/scheduler"
"gogs.inhome.blapointe.com/local/logb"
"net/http"
)