Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Resource ¶
type Resource struct { url.URL Host string Owner string Repo string Type string Ref string Path string }
Resource represents a GitHub resource URL
func NewResource ¶
NewResource creates new resource from url as string
func NewResourceFromURL ¶
NewResourceFromURL creates new resource from url object
func (*Resource) ToRawURL ¶
ToRawURL returns the GitHub raw URL if the resource is 'blob', otherwise returns the origin URL
func (*Resource) ToResourceURL ¶
ToResourceURL returns the u
func (*Resource) TotRepoURL ¶
TotRepoURL returns the GitHub repository URL
Click to show internal directories.
Click to hide internal directories.