Documentation ¶
Index ¶
- Constants
- func CreateTempImage(baseData []byte) (string, error)
- func GenerateImage(textContent string, fgColorHex string, bgColorHex string, fontSize float64) ([]byte, error)
- func GetFileName(files map[string]interface{}) string
- func GetJson(url string, target interface{}) (int, error)
- type Response
Constants ¶
View Source
const ( FreeMono = "FreeMono.ttf" FreeSans = "FreeSans.ttf" UbuntuMono = "UbuntuMono.ttf" )
Variables ¶
This section is empty.
Functions ¶
func CreateTempImage ¶
func GenerateImage ¶
func GetFileName ¶
Types ¶
type Response ¶
type Response struct { URL string `json:"url"` ForksURL string `json:"forks_url"` CommitsURL string `json:"commits_url"` ID string `json:"id"` NodeID string `json:"node_id"` GitPullURL string `json:"git_pull_url"` GitPushURL string `json:"git_push_url"` HTMLURL string `json:"html_url"` Files map[string]interface{} `json:"files"` Public bool `json:"public"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` Description string `json:"description"` Comments int `json:"comments"` User interface{} `json:"user"` CommentsURL string `json:"comments_url"` Owner struct { Login string `json:"login"` ID int `json:"id"` NodeID string `json:"node_id"` AvatarURL string `json:"avatar_url"` GravatarID string `json:"gravatar_id"` URL string `json:"url"` HTMLURL string `json:"html_url"` FollowersURL string `json:"followers_url"` FollowingURL string `json:"following_url"` GistsURL string `json:"gists_url"` StarredURL string `json:"starred_url"` SubscriptionsURL string `json:"subscriptions_url"` OrganizationsURL string `json:"organizations_url"` ReposURL string `json:"repos_url"` EventsURL string `json:"events_url"` ReceivedEventsURL string `json:"received_events_url"` Type string `json:"type"` SiteAdmin bool `json:"site_admin"` } `json:"owner"` Forks []interface{} `json:"forks"` History []struct { User struct { Login string `json:"login"` ID int `json:"id"` NodeID string `json:"node_id"` AvatarURL string `json:"avatar_url"` GravatarID string `json:"gravatar_id"` URL string `json:"url"` HTMLURL string `json:"html_url"` FollowersURL string `json:"followers_url"` FollowingURL string `json:"following_url"` GistsURL string `json:"gists_url"` StarredURL string `json:"starred_url"` SubscriptionsURL string `json:"subscriptions_url"` OrganizationsURL string `json:"organizations_url"` ReposURL string `json:"repos_url"` EventsURL string `json:"events_url"` ReceivedEventsURL string `json:"received_events_url"` Type string `json:"type"` SiteAdmin bool `json:"site_admin"` } `json:"user"` Version string `json:"version"` CommittedAt time.Time `json:"committed_at"` ChangeStatus struct { Total int `json:"total"` Additions int `json:"additions"` Deletions int `json:"deletions"` } `json:"change_status"` URL string `json:"url"` } `json:"history"` Truncated bool `json:"truncated"` }
Click to show internal directories.
Click to hide internal directories.