alpha
Login
or
Join now
boltless.me
/
zoekt
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
fork of https://github.com/sourcegraph/zoekt
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
GobEncode for query.Repo (#564)
author
Rodrigo Silva Mendoza
committer
GitHub
date
3 years ago
(Mar 23, 2023, 10:46 AM +0200)
commit
27effbad
27effbadc957cb77a48098ce69455f4caeaaa7e2
parent
52664b7d
52664b7dfdeb0ae3c198a393c9187f99fb3f8828
+10
1 changed file
Expand all
Collapse all
Unified
Split
query
query.go
+10
query/query.go
Reviewed
···
176
176
return fmt.Sprintf("repo:%s", q.Regexp.String())
177
177
}
178
178
179
179
+
func (q Repo) GobEncode() ([]byte, error) {
180
180
+
return []byte(q.Regexp.String()), nil
181
181
+
}
182
182
+
183
183
+
func (q *Repo) GobDecode(data []byte) error {
184
184
+
var err error
185
185
+
q.Regexp, err = regexp.Compile(string(data))
186
186
+
return err
187
187
+
}
188
188
+
179
189
// RepoRegexp is a Sourcegraph addition which searches documents where the
180
190
// repository name matches Regexp.
181
191
type RepoRegexp struct {