aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2024-03-05 16:55:47 +0700
committerShulhan <ms@kilabit.info>2024-03-05 16:55:47 +0700
commit1aea2ed68daac201fd7aaf2b047ca34558999f63 (patch)
tree87b9e9f40962b5df76fbf78d38cf68528e241a3f
parentb97be92c238e766dafa80dcfeae92987f016b895 (diff)
downloadciigo-1aea2ed68daac201fd7aaf2b047ca34558999f63.tar.xz
all: replace module "share" with "pakakeh.go"
-rw-r--r--README.md2
-rw-r--r--ciigo.go2
-rw-r--r--ciigo_test.go2
-rw-r--r--cmd/ciigo-example/main.go2
-rw-r--r--cmd/ciigo-example/static.go4
-rw-r--r--embed_options.go2
-rw-r--r--go.mod9
-rw-r--r--go.sum10
-rw-r--r--serve_options.go2
-rw-r--r--server.go6
-rw-r--r--watcher.go4
-rw-r--r--watcher_test.go2
12 files changed, 25 insertions, 22 deletions
diff --git a/README.md b/README.md
index 00fdfc2..178ed72 100644
--- a/README.md
+++ b/README.md
@@ -91,7 +91,7 @@ package main
import (
"git.sr.ht/~shulhan/ciigo"
- "github.com/shuLhan/share/lib/memfs"
+ "git.sr.ht/~shulhan/pakakeh.go/lib/memfs"
)
var mysiteFS *memfs.MemFS
diff --git a/ciigo.go b/ciigo.go
index 9925736..e973ae7 100644
--- a/ciigo.go
+++ b/ciigo.go
@@ -17,7 +17,7 @@ import (
"regexp"
"strings"
- "github.com/shuLhan/share/lib/memfs"
+ "git.sr.ht/~shulhan/pakakeh.go/lib/memfs"
)
const (
diff --git a/ciigo_test.go b/ciigo_test.go
index c72a1b2..50e00f6 100644
--- a/ciigo_test.go
+++ b/ciigo_test.go
@@ -10,7 +10,7 @@ import (
"sort"
"testing"
- "github.com/shuLhan/share/lib/test"
+ "git.sr.ht/~shulhan/pakakeh.go/lib/test"
)
func TestMain(m *testing.M) {
diff --git a/cmd/ciigo-example/main.go b/cmd/ciigo-example/main.go
index fdac340..f9f31ed 100644
--- a/cmd/ciigo-example/main.go
+++ b/cmd/ciigo-example/main.go
@@ -10,7 +10,7 @@ import (
"log"
"strings"
- "github.com/shuLhan/share/lib/memfs"
+ "git.sr.ht/~shulhan/pakakeh.go/lib/memfs"
"git.sr.ht/~shulhan/ciigo"
)
diff --git a/cmd/ciigo-example/static.go b/cmd/ciigo-example/static.go
index 90695e0..603b7f9 100644
--- a/cmd/ciigo-example/static.go
+++ b/cmd/ciigo-example/static.go
@@ -1,11 +1,11 @@
// SPDX-FileCopyrightText: 2019 Shulhan <ms@kilabit.info>
// SPDX-License-Identifier: GPL-3.0-or-later
-// Code generated by github.com/shuLhan/share/lib/memfs DO NOT EDIT.
+// Code generated by git.sr.ht/~shulhan/pakakeh.go/lib/memfs DO NOT EDIT.
package main
import (
- "github.com/shuLhan/share/lib/memfs"
+ "git.sr.ht/~shulhan/pakakeh.go/lib/memfs"
)
func generate__example() *memfs.Node {
diff --git a/embed_options.go b/embed_options.go
index f21d801..d0c56b9 100644
--- a/embed_options.go
+++ b/embed_options.go
@@ -3,7 +3,7 @@
package ciigo
-import "github.com/shuLhan/share/lib/memfs"
+import "git.sr.ht/~shulhan/pakakeh.go/lib/memfs"
// EmbedOptions define the options for calling GoEmbed function.
type EmbedOptions struct {
diff --git a/go.mod b/go.mod
index cf7bcf7..2fca528 100644
--- a/go.mod
+++ b/go.mod
@@ -7,17 +7,18 @@ go 1.20
require (
git.sr.ht/~shulhan/asciidoctor-go v0.5.1
- github.com/shuLhan/share v0.51.0
+ git.sr.ht/~shulhan/pakakeh.go v0.53.2-0.20240305092154-76510776395b
github.com/yuin/goldmark v1.6.0
github.com/yuin/goldmark-meta v1.1.0
)
require (
- golang.org/x/net v0.19.0 // indirect
- golang.org/x/sys v0.15.0 // indirect
+ github.com/shuLhan/share v0.51.0 // indirect
+ golang.org/x/net v0.21.0 // indirect
+ golang.org/x/sys v0.17.0 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
)
//replace git.sr.ht/~shulhan/asciidoctor-go => ../asciidoctor-go
-//replace github.com/shuLhan/share => ../share
+//replace git.sr.ht/~shulhan/pakakeh.go => ../pakakeh.go
diff --git a/go.sum b/go.sum
index 664718f..d3395c6 100644
--- a/go.sum
+++ b/go.sum
@@ -1,15 +1,17 @@
git.sr.ht/~shulhan/asciidoctor-go v0.5.1 h1:TuuLo+N61+qsXkiFgtiW5W1q7xHzeSID4zH+ci5J8ic=
git.sr.ht/~shulhan/asciidoctor-go v0.5.1/go.mod h1:5audSCN6jDr2+/cMvx1MdZxkCurjl/k6A5OGYWRtB0o=
+git.sr.ht/~shulhan/pakakeh.go v0.53.2-0.20240305092154-76510776395b h1:LtSlSrDg3Zw1ASfUi5enaHqefPWiWsPEDK+IlzSO72g=
+git.sr.ht/~shulhan/pakakeh.go v0.53.2-0.20240305092154-76510776395b/go.mod h1:C43kVQ9Dai9Ol3bCHi8VKeOtYzp+E8617jNBaIsmd8o=
github.com/shuLhan/share v0.51.0 h1:WPKRNNWnZPaVTi/o6nUdkAePek2Lbjz5baoq8MU1U+I=
github.com/shuLhan/share v0.51.0/go.mod h1:Zn0zwUdSuu7L2BKaYkVOXwbwxd5Kn6Y2bhohD9Tf0Sc=
github.com/yuin/goldmark v1.6.0 h1:boZcn2GTjpsynOsC0iJHnBWa4Bi0qzfJjthwauItG68=
github.com/yuin/goldmark v1.6.0/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY=
github.com/yuin/goldmark-meta v1.1.0 h1:pWw+JLHGZe8Rk0EGsMVssiNb/AaPMHfSRszZeUeiOUc=
github.com/yuin/goldmark-meta v1.1.0/go.mod h1:U4spWENafuA7Zyg+Lj5RqK/MF+ovMYtBvXi1lBb2VP0=
-golang.org/x/net v0.19.0 h1:zTwKpTd2XuCqf8huc7Fo2iSy+4RHPd10s4KzeTnVr1c=
-golang.org/x/net v0.19.0/go.mod h1:CfAk/cbD4CthTvqiEl8NpboMuiuOYsAr/7NOjZJtv1U=
-golang.org/x/sys v0.15.0 h1:h48lPFYpsTvQJZF4EKyI4aLHaev3CxivZmv7yZig9pc=
-golang.org/x/sys v0.15.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
+golang.org/x/net v0.21.0 h1:AQyQV4dYCvJ7vGmJyKki9+PBdyvhkSd8EIx/qb0AYv4=
+golang.org/x/net v0.21.0/go.mod h1:bIjVDfnllIU7BJ2DNgfnXvpSvtn8VRwhlsaeUTyUS44=
+golang.org/x/sys v0.17.0 h1:25cE3gD+tdBA7lp7QfhuV+rJiE9YXTcS3VG1SqssI/Y=
+golang.org/x/sys v0.17.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY=
diff --git a/serve_options.go b/serve_options.go
index 06b8465..6995547 100644
--- a/serve_options.go
+++ b/serve_options.go
@@ -3,7 +3,7 @@
package ciigo
-import "github.com/shuLhan/share/lib/memfs"
+import "git.sr.ht/~shulhan/pakakeh.go/lib/memfs"
const (
defAddress = `:8080`
diff --git a/server.go b/server.go
index fd80543..aa7c59a 100644
--- a/server.go
+++ b/server.go
@@ -10,8 +10,8 @@ import (
"log"
"strings"
- libhttp "github.com/shuLhan/share/lib/http"
- "github.com/shuLhan/share/lib/memfs"
+ libhttp "git.sr.ht/~shulhan/pakakeh.go/lib/http"
+ "git.sr.ht/~shulhan/pakakeh.go/lib/memfs"
)
// server contains the HTTP server that serve the generated HTML files.
@@ -146,7 +146,7 @@ func (srv *server) onSearch(epr *libhttp.EndpointRequest) (resBody []byte, err e
results []memfs.SearchResult
)
- q = epr.HttpRequest.Form.Get(`q`)
+ q = epr.HTTPRequest.Form.Get(`q`)
results = srv.http.Options.Memfs.Search(strings.Fields(q), 0)
err = srv.converter.tmplSearch.Execute(&buf, results)
diff --git a/watcher.go b/watcher.go
index 034753c..81d2d12 100644
--- a/watcher.go
+++ b/watcher.go
@@ -10,8 +10,8 @@ import (
"strings"
"time"
- "github.com/shuLhan/share/lib/clise"
- "github.com/shuLhan/share/lib/memfs"
+ "git.sr.ht/~shulhan/pakakeh.go/lib/clise"
+ "git.sr.ht/~shulhan/pakakeh.go/lib/memfs"
)
// watcher watch for changes on all markup files and convert them
diff --git a/watcher_test.go b/watcher_test.go
index 7937973..1f8b2e3 100644
--- a/watcher_test.go
+++ b/watcher_test.go
@@ -10,7 +10,7 @@ import (
"testing"
"time"
- "github.com/shuLhan/share/lib/test"
+ "git.sr.ht/~shulhan/pakakeh.go/lib/test"
)
func TestWatcher(t *testing.T) {