share gist getting
This commit is contained in:
parent
b6502deb24
commit
39b6ec8aec
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue