aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2021-04-06 19:56:14 +0700
committerShulhan <ms@kilabit.info>2021-04-06 19:56:14 +0700
commita91a9f7d53391ec4cdd9602ebb8c7762b0150eb5 (patch)
tree22d9e3703cb3c77870c03f52f5db6902e6e27301
parent2bc421270237bb902d5981f340369bd3bed59a7e (diff)
downloadciigo-a91a9f7d53391ec4cdd9602ebb8c7762b0150eb5.tar.xz
go.mod: set the minimum Go to 1.16 and update the dependencies
-rw-r--r--go.mod6
-rw-r--r--go.sum28
-rw-r--r--watcher_test.go12
3 files changed, 21 insertions, 25 deletions
diff --git a/go.mod b/go.mod
index c769247..60d62e7 100644
--- a/go.mod
+++ b/go.mod
@@ -1,10 +1,10 @@
module git.sr.ht/~shulhan/ciigo
-go 1.14
+go 1.16
require (
- git.sr.ht/~shulhan/asciidoctor-go v0.1.0
- github.com/shuLhan/share v0.24.0
+ git.sr.ht/~shulhan/asciidoctor-go v0.1.1-0.20210406124504-3a5ca1ea9d09
+ github.com/shuLhan/share v0.25.1
)
//replace git.sr.ht/~shulhan/asciidoctor-go => ../asciidoctor-go
diff --git a/go.sum b/go.sum
index 47286aa..aebb5d6 100644
--- a/go.sum
+++ b/go.sum
@@ -1,20 +1,16 @@
-git.sr.ht/~shulhan/asciidoctor-go v0.1.0 h1:8bubpPyi/xzodZLFv+rScXlJR6hxfI3RQTYB9WfUyH8=
-git.sr.ht/~shulhan/asciidoctor-go v0.1.0/go.mod h1:Cp7tWzT3GRRO6zZIg1mQ6yM5Nlb9iMK9hVl9aRZwcdo=
-github.com/shuLhan/share v0.24.0 h1:zl2HcGcqBMZFHxhmH9IqMYudfhwJzYucthE6Z9aRBqQ=
-github.com/shuLhan/share v0.24.0/go.mod h1:c6xnA1EctNz2KGVlekfydyXoUjpTPjyUHUIyWSELN/c=
-golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
-golang.org/x/crypto v0.0.0-20201221181555-eec23a3978ad/go.mod h1:jdWPYTVW3xRLrWPugEBEK3UY2ZEsg3UU495nc5E+M+I=
-golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
-golang.org/x/net v0.0.0-20201224014010-6772e930b67b h1:iFwSg7t5GZmB/Q5TjiEAsdoLDrdJRC1RiF2WhuV29Qw=
-golang.org/x/net v0.0.0-20201224014010-6772e930b67b/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
-golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
-golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+git.sr.ht/~shulhan/asciidoctor-go v0.1.1-0.20210406124504-3a5ca1ea9d09 h1:88aO0OKoM5ZNga/pCYYg4yUnSbqMO2xK6WtSLZj+avw=
+git.sr.ht/~shulhan/asciidoctor-go v0.1.1-0.20210406124504-3a5ca1ea9d09/go.mod h1:es2jWkfgn3nOEXIhKX+i+Pb3pJIOsYhPq+DIfzhVDzU=
+github.com/shuLhan/share v0.25.1 h1:k2btbYnBcsIfkM6BvRrCZ4i726pY5bF8xxGvjlWsxVY=
+github.com/shuLhan/share v0.25.1/go.mod h1:G6T/vwf4RNLP6iJBhOfExDfAnPT8MuSDQ4Y81Ax9fDg=
+golang.org/x/crypto v0.0.0-20210322153248-0c34fe9e7dc2/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4=
+golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
+golang.org/x/net v0.0.0-20210331212208-0fccb6fa2b5c h1:KHUzaHIpjWVlVVNh65G3hhuj3KB1HnjY6Cq5cTvRQT8=
+golang.org/x/net v0.0.0-20210331212208-0fccb6fa2b5c/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM=
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/sys v0.0.0-20210108172913-0df2131ae363 h1:wHn06sgWHMO1VsQ8F+KzDJx/JzqfsNLnc+oEi07qD7s=
-golang.org/x/sys v0.0.0-20210108172913-0df2131ae363/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
-golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw=
+golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20210403161142-5e06dd20ab57 h1:F5Gozwx4I1xtr/sr/8CFbb57iKi3297KFs0QDbGN60A=
+golang.org/x/sys v0.0.0-20210403161142-5e06dd20ab57/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
-golang.org/x/term v0.0.0-20201210144234-2321bbc49cbf/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
-golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
+golang.org/x/term v0.0.0-20210317153231-de623e64d2a6/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
diff --git a/watcher_test.go b/watcher_test.go
index 0bceff1..2d6df9f 100644
--- a/watcher_test.go
+++ b/watcher_test.go
@@ -64,7 +64,7 @@ func testCreate(t *testing.T) {
got := waitChanges()
- test.Assert(t, "New adoc file created", testFileAdoc, got.path, true)
+ test.Assert(t, "New adoc file created", testFileAdoc, got.path)
expBody := `
<div id="header">
@@ -78,7 +78,7 @@ func testCreate(t *testing.T) {
</div>
</div>`
gotBody := removeFooter(string(got.fhtml.Body))
- test.Assert(t, "HTML body", expBody, gotBody, true)
+ test.Assert(t, "HTML body", expBody, gotBody)
}
func testUpdate(t *testing.T) {
@@ -92,7 +92,7 @@ func testUpdate(t *testing.T) {
}
got := waitChanges()
- test.Assert(t, "adoc file updated", testFileAdoc, got.path, true)
+ test.Assert(t, "adoc file updated", testFileAdoc, got.path)
expBody := `
<div id="header">
@@ -107,7 +107,7 @@ func testUpdate(t *testing.T) {
</div>
</div>`
gotBody := removeFooter(string(got.fhtml.Body))
- test.Assert(t, "HTML body", expBody, gotBody, true)
+ test.Assert(t, "HTML body", expBody, gotBody)
}
func testDelete(t *testing.T) {
@@ -122,10 +122,10 @@ func testDelete(t *testing.T) {
}
got := waitChanges()
- test.Assert(t, "adoc file updated", testFileAdoc, got.path, true)
+ test.Assert(t, "adoc file updated", testFileAdoc, got.path)
_, gotIsExist := testWatcher.fileMarkups[testFileAdoc]
- test.Assert(t, "adoc file deleted", false, gotIsExist, true)
+ test.Assert(t, "adoc file deleted", false, gotIsExist)
}
//