Documentation ¶
Index ¶
Constants ¶
View Source
const ( BaseURL = "https://developer.apple.com/documentation/" Version = 2 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Arg ¶
func ArgFromAst ¶
type Class ¶
type Class struct { Name string Description string Declaration string InstanceMethods []Method `json:",omitempty"` InstanceProperties []Property `json:",omitempty"` TypeMethods []Method `json:",omitempty"` TypeProperties []Property `json:",omitempty"` Frameworks []string Platforms []string Deprecated bool `json:",omitempty"` TopicURL string `json:",omitempty"` }
type DataType ¶
type DataType struct { Name string `json:",omitempty"` IsPtr bool `json:",omitempty"` IsPtrPtr bool `json:",omitempty"` Annotations []string `json:",omitempty"` FuncPtr *Func `json:",omitempty"` Block *Func `json:",omitempty"` Params []DataType `json:",omitempty"` }
func DataTypeFromAst ¶
type Func ¶
type Func struct { Name string `json:",omitempty"` Return DataType Args []Arg TopicURL string `json:",omitempty"` }
func FuncFromAst ¶
func FuncFromAst(fn *declparse.FunctionDecl) *Func
type Lookup ¶
type Lookup struct { Query string Lang string Name string Prefix string DocPath string APIPath string URL string }
func LookupFromPath ¶
type Method ¶
type Method struct { Name string Description string Declaration string Return DataType Args []Arg Deprecated bool `json:",omitempty"` TopicURL string `json:",omitempty"` }
func MethodFromAst ¶
func MethodFromAst(m declparse.MethodDecl) Method
type Property ¶
type Property struct { Name string Description string Declaration string Type DataType Attrs map[string]interface{} Deprecated bool `json:",omitempty"` TopicURL string `json:",omitempty"` }
func PropertyFromAst ¶
func PropertyFromAst(p declparse.PropertyDecl) Property
type Schema ¶
func PullSchema ¶
Click to show internal directories.
Click to hide internal directories.