@@ -1,12 +1,12 @@
package app
import (
- "gex/app/route/home"
- "gex/pkg/sec"
- "gex/pkg/sess"
+ "git.clearsky.net.au/cody/gex.git/app/route/home"
+ "git.clearsky.net.au/cody/gex.git/pkg/sec"
+ "git.clearsky.net.au/cody/gex.git/pkg/sess"
- "gex/pkg/gen"
- "gex/pkg/gex"
+ "git.clearsky.net.au/cody/gex.git/pkg/gen"
+ "git.clearsky.net.au/cody/gex.git/pkg/gex"
)
func Init() {
@@ -1,8 +1,8 @@
package home
- "gex/pkg/render"
+ "git.clearsky.net.au/cody/gex.git/pkg/render"
func Index(req *gex.Req, res gex.Res) {
@@ -1,3 +1,3 @@
-module gex
+module git.clearsky.net.au/cody/gex.git
go 1.23.4
@@ -1,10 +1,9 @@
package main
- "gex/app"
-
- "gex/pkg/utils"
+ "git.clearsky.net.au/cody/gex.git/app"
+ "git.clearsky.net.au/cody/gex.git/pkg/utils"
func main() {
@@ -1,7 +1,7 @@
package gen
- "gex/pkg/gen/domquery"
+ "git.clearsky.net.au/cody/gex.git/pkg/gen/domquery"
func AddClassAttr(htmlStr string, className string) string {
@@ -2,11 +2,12 @@ package img
"fmt"
"os"
"os/exec"
"path/filepath"
"strings"
+
func Process(htmlDir string, tag *domquery.Node) string {
@@ -2,9 +2,10 @@ package layout
func ProcessHTML(htmlStr string) (string, error) {
@@ -2,14 +2,15 @@ package gen
- "gex/pkg/gen/img"
- "gex/pkg/gen/layout"
- "gex/pkg/gen/partial"
"math/rand"
+ "git.clearsky.net.au/cody/gex.git/pkg/gen/img"
+ "git.clearsky.net.au/cody/gex.git/pkg/gen/layout"
+ "git.clearsky.net.au/cody/gex.git/pkg/gen/partial"
var appRuleList cssRuleList
@@ -2,9 +2,10 @@ package partial
package render
func global(req *gex.Req, props Props, funcs Funcs) {
@@ -2,11 +2,12 @@ package render
"bytes"
"html/template"
type Props map[string]any
package sec
func Middleware(req *gex.Req, res gex.Res) bool {
@@ -1,6 +1,6 @@
-import "gex/pkg/gex"
+import "git.clearsky.net.au/cody/gex.git/pkg/gex"
var permissions = make(map[string][]string)
@@ -6,8 +6,9 @@ import (
"crypto/sha256"
"errors"
- "gex/pkg/sess/base64"
+ "git.clearsky.net.au/cody/gex.git/pkg/sess/base64"
// encode json bytes to a jwt token string
package sess
var sess Sess
@@ -3,8 +3,9 @@ package sess
"encoding/json"
- "gex/pkg/sess/jwt"
+ "git.clearsky.net.au/cody/gex.git/pkg/sess/jwt"
"time"