mirror of
https://github.com/charmbracelet/glow.git
synced 2026-08-09 09:49:09 +02:00
Make source private
This commit is contained in:
parent
5cdf8294a8
commit
ec9cc0bde4
3 changed files with 17 additions and 11 deletions
|
|
@ -22,7 +22,7 @@ func isGitLabURL(s string) (string, bool) {
|
|||
}
|
||||
|
||||
// findGitLabREADME tries to find the correct README filename in a repository
|
||||
func findGitLabREADME(s string) (*Source, error) {
|
||||
func findGitLabREADME(s string) (*source, error) {
|
||||
u, err := url.ParseRequestURI(s)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
|
@ -38,7 +38,7 @@ func findGitLabREADME(s string) (*Source, error) {
|
|||
}
|
||||
|
||||
if resp.StatusCode == http.StatusOK {
|
||||
return &Source{resp.Body, v.String()}, nil
|
||||
return &source{resp.Body, v.String()}, nil
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue