Documentation ¶
Index ¶
- Variables
- func ChapterNameToFilename(name string) string
- func Codegen(api *ParsedAPI, opts *GenOpts) error
- func CodegenChapter(chap *Chapter, opts *GenOpts) (*jen.File, error)
- func CodegenFunc(obj *Object, f *jen.File, opts *GenOpts) error
- func CodegenStruct(obj *Object, f *jen.File, opts *GenOpts) error
- func FieldToCode(f Field, objectName string, opts *GenOpts) (jen.Code, error)
- func FieldToGo(name string) (string, error)
- func FuncNameToGo(name string) (string, error)
- func TypeNameToGo(name string) (string, error)
- func TypeToGo(t Type) (string, error)
- type Chapter
- type Field
- type GenOpts
- type MethodException
- type Object
- type ParseOpts
- type ParsedAPI
- type StructException
- type Type
- type TypeException
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultParseOpts = &ParseOpts{ IgnoreH3: []string{ "Recent changes", "Authorizing your bot", "Making requests", "Using a Local Bot API Server", }, IgnoreH4: []string{ "Available types$Sending files", "Available types$Inline mode objects", "Available methods$Formatting options", }, }
Functions ¶
func ChapterNameToFilename ¶
func FuncNameToGo ¶
func TypeNameToGo ¶
Types ¶
type GenOpts ¶
type GenOpts struct { PackageName string Dest string TypeExceptions []TypeException MethodExceptions []MethodException StructExceptions []StructException }
type MethodException ¶
type ParsedAPI ¶
func (*ParsedAPI) GetChapter ¶
type StructException ¶
type TypeException ¶
Click to show internal directories.
Click to hide internal directories.