Adjust easyjson implementation

This commit is contained in:
kayos@tcp.direct 2022-05-16 00:33:42 -07:00
parent d20a953615
commit 0f9dbbd635
Signed by: kayos
GPG Key ID: 4B841471B4BEE979
12 changed files with 5 additions and 180 deletions

1
.gitignore vendored Normal file

@ -0,0 +1 @@
.idea/

@ -40,9 +40,3 @@ func URLSearchRepos(query, language string, page, limit int, sort SortBy, order
page, limit,
sort, order)
}
func URLCVESearch(query string) string {
return fmt.Sprintf(
URLSearchRepos(query+" repo:CVEproject/cvelist extension:json", "", 1, 0, SortUpdated, Descending),
)
}

@ -1,18 +0,0 @@
// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT.
package github
import (
json "encoding/json"
easyjson "github.com/mailru/easyjson"
jlexer "github.com/mailru/easyjson/jlexer"
jwriter "github.com/mailru/easyjson/jwriter"
)
// suppress unused package warning
var (
_ *json.RawMessage
_ *jlexer.Lexer
_ *jwriter.Writer
_ easyjson.Marshaler
)

@ -1,18 +0,0 @@
// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT.
package github
import (
json "encoding/json"
easyjson "github.com/mailru/easyjson"
jlexer "github.com/mailru/easyjson/jlexer"
jwriter "github.com/mailru/easyjson/jwriter"
)
// suppress unused package warning
var (
_ *json.RawMessage
_ *jlexer.Lexer
_ *jwriter.Writer
_ easyjson.Marshaler
)

@ -1,18 +0,0 @@
// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT.
package github
import (
json "encoding/json"
easyjson "github.com/mailru/easyjson"
jlexer "github.com/mailru/easyjson/jlexer"
jwriter "github.com/mailru/easyjson/jwriter"
)
// suppress unused package warning
var (
_ *json.RawMessage
_ *jlexer.Lexer
_ *jwriter.Writer
_ easyjson.Marshaler
)

@ -1,30 +0,0 @@
package github
var OtherEndpoints = map[string]string{
"emojis": "https://api.github.com/emojis",
"feeds": "https://api.github.com/feeds",
"followers": "https://api.github.com/user/followers",
"following": "https://api.github.com/user/following{/target}",
"gists": "https://api.github.com/gists{/gist_id}",
"hub": "https://api.github.com/hub",
"issue_search": "https://api.github.com/search/issues?q={query}{&page,per_page,sort,order}",
"issues": "https://api.github.com/issues",
"keys": "https://api.github.com/user/keys",
"label_search": "https://api.github.com/search/labels?q={query}&repository_id={repository_id}{&page,per_page}",
"notifications": "https://api.github.com/notifications",
"organization": "https://api.github.com/orgs/{org}",
"organization_repositories": "https://api.github.com/orgs/{org}/repos{?type,page,per_page,sort}",
"organization_teams": "https://api.github.com/orgs/{org}/teams",
"public_gists": "https://api.github.com/gists/public",
"rate_limit": "https://api.github.com/rate_limit",
"repository": "https://api.github.com/repos/{owner}/{repo}",
"repository_search": "https://api.github.com/search/repositories?q={query}{&page,per_page,sort,order}",
"current_user_repositories": "https://api.github.com/user/repos{?type,page,per_page,sort}",
"starred": "https://api.github.com/user/starred{/owner}{/repo}",
"starred_gists": "https://api.github.com/gists/starred",
"topic_search": "https://api.github.com/search/topics?q={query}{&page,per_page}",
"user": "https://api.github.com/users/{user}",
"user_organizations": "https://api.github.com/user/orgs",
"user_repositories": "https://api.github.com/users/{user}/repos{?type,page,per_page,sort}",
"user_search": "https://api.github.com/search/users?q={query}{&page,per_page,sort,order}",
}

@ -1,18 +0,0 @@
// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT.
package github
import (
json "encoding/json"
easyjson "github.com/mailru/easyjson"
jlexer "github.com/mailru/easyjson/jlexer"
jwriter "github.com/mailru/easyjson/jwriter"
)
// suppress unused package warning
var (
_ *json.RawMessage
_ *jlexer.Lexer
_ *jwriter.Writer
_ easyjson.Marshaler
)

@ -1,18 +0,0 @@
// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT.
package github
import (
json "encoding/json"
easyjson "github.com/mailru/easyjson"
jlexer "github.com/mailru/easyjson/jlexer"
jwriter "github.com/mailru/easyjson/jwriter"
)
// suppress unused package warning
var (
_ *json.RawMessage
_ *jlexer.Lexer
_ *jwriter.Writer
_ easyjson.Marshaler
)

@ -1 +1,5 @@
package github
func URLCVESearch(query string) string {
return URLSearchRepos(query+" repo:CVEproject/cvelist extension:json", "", 1, 0, SortUpdated, Descending)
}

@ -1,18 +0,0 @@
// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT.
package github
import (
json "encoding/json"
easyjson "github.com/mailru/easyjson"
jlexer "github.com/mailru/easyjson/jlexer"
jwriter "github.com/mailru/easyjson/jwriter"
)
// suppress unused package warning
var (
_ *json.RawMessage
_ *jlexer.Lexer
_ *jwriter.Writer
_ easyjson.Marshaler
)

@ -1,18 +0,0 @@
// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT.
package github
import (
json "encoding/json"
easyjson "github.com/mailru/easyjson"
jlexer "github.com/mailru/easyjson/jlexer"
jwriter "github.com/mailru/easyjson/jwriter"
)
// suppress unused package warning
var (
_ *json.RawMessage
_ *jlexer.Lexer
_ *jwriter.Writer
_ easyjson.Marshaler
)

@ -1,18 +0,0 @@
// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT.
package github
import (
json "encoding/json"
easyjson "github.com/mailru/easyjson"
jlexer "github.com/mailru/easyjson/jlexer"
jwriter "github.com/mailru/easyjson/jwriter"
)
// suppress unused package warning
var (
_ *json.RawMessage
_ *jlexer.Lexer
_ *jwriter.Writer
_ easyjson.Marshaler
)