Skip to content

Commit 75897f7

Browse files
committed
feat: rss support
1 parent 278695f commit 75897f7

File tree

5 files changed

+180
-11
lines changed

5 files changed

+180
-11
lines changed

core/api.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ package core
22

33
import (
44
"context"
5-
"fmt"
65
"net/http"
76

87
"github.com/shurcooL/githubv4"
@@ -51,8 +50,6 @@ func (api *BlogApi) FetchPosts(before, after, categoryId string) (posts Discussi
5150
"label_first": githubv4.Int(LABEL_MAX_COUNT),
5251
}
5352

54-
fmt.Printf("%v\n", binds)
55-
5653
if len(after) > 0 {
5754
binds["after"] = (githubv4.String)(after)
5855
}

go.mod

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,16 @@ module pure
33
go 1.19
44

55
require (
6+
github.com/cespare/xxhash/v2 v2.1.2 // indirect
7+
github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f // indirect
68
github.com/gin-contrib/sse v0.1.0 // indirect
79
github.com/go-playground/locales v0.14.0 // indirect
810
github.com/go-playground/universal-translator v0.18.0 // indirect
911
github.com/go-playground/validator/v10 v10.10.0 // indirect
12+
github.com/go-redis/redis/v8 v8.11.4 // indirect
1013
github.com/goccy/go-json v0.9.7 // indirect
1114
github.com/golang/protobuf v1.5.2 // indirect
15+
github.com/jellydator/ttlcache/v2 v2.11.1 // indirect
1216
github.com/json-iterator/go v1.1.12 // indirect
1317
github.com/leodido/go-urn v1.2.1 // indirect
1418
github.com/mattn/go-isatty v0.0.14 // indirect
@@ -19,15 +23,18 @@ require (
1923
github.com/ugorji/go/codec v1.2.7 // indirect
2024
golang.org/x/crypto v0.0.0-20210711020723-a769d52b0f97 // indirect
2125
golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e // indirect
26+
golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4 // indirect
2227
golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a // indirect
2328
golang.org/x/text v0.3.7 // indirect
2429
google.golang.org/appengine v1.6.7 // indirect
2530
google.golang.org/protobuf v1.28.0 // indirect
26-
gopkg.in/yaml.v2 v2.4.0 // indirect
2731
)
2832

2933
require (
34+
github.com/chenyahui/gin-cache v1.7.1
3035
github.com/gin-gonic/gin v1.8.1
36+
github.com/gorilla/feeds v1.1.1
3137
github.com/shurcooL/githubv4 v0.0.0-20220922232305-70b4d362a8cb
3238
golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783
39+
gopkg.in/yaml.v2 v2.4.0
3340
)

0 commit comments

Comments
 (0)