share gist getting

This commit is contained in:
vilmibm 2020-09-11 17:37:45 -05:00 committed by vilmibm
parent b6502deb24
commit 39b6ec8aec

View file

@ -1,4 +1,4 @@
package view
package shared
import (
"fmt"
@ -19,7 +19,7 @@ type Gist struct {
Files map[string]GistFile
}
func getGist(client *http.Client, hostname, gistID string) (*Gist, error) {
func GetGist(client *http.Client, hostname, gistID string) (*Gist, error) {
gist := Gist{}
path := fmt.Sprintf("gists/%s", gistID)