Documentation ¶
Index ¶
- func ClientNeeded(options *common.CurlOptions) bool
- func FormString(generator *GoGenerator, data *common.DataOption) string
- func NewStringForData(generator *GoGenerator, data *common.DataOption) (string, string)
- func ProcessCurlCommand(options *common.CurlOptions) (string, interface{})
- func StringForData(generator *GoGenerator, data *common.DataOption) string
- type GoGenerator
- func (self GoGenerator) AdditionalDeclaration() string
- func (self GoGenerator) ClientBody() string
- func (self GoGenerator) FilePath() string
- func (self GoGenerator) Method() string
- func (self GoGenerator) ModifyRequest() string
- func (self GoGenerator) PrepareClient() string
- func (self *GoGenerator) SetDataForBody()
- func (self *GoGenerator) SetDataForPostForm()
- func (self *GoGenerator) SetDataForUrl()
- func (self *GoGenerator) SetFormForBody()
- func (self GoGenerator) Url() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClientNeeded ¶
func ClientNeeded(options *common.CurlOptions) bool
func FormString ¶
func FormString(generator *GoGenerator, data *common.DataOption) string
func NewStringForData ¶
func NewStringForData(generator *GoGenerator, data *common.DataOption) (string, string)
func ProcessCurlCommand ¶
func ProcessCurlCommand(options *common.CurlOptions) (string, interface{})
Dispatcher function of curl command This is an exported function and called from httpgen.
func StringForData ¶
func StringForData(generator *GoGenerator, data *common.DataOption) string
Types ¶
type GoGenerator ¶
type GoGenerator struct { Options *common.CurlOptions Modules map[string]bool Data string DataVariable string ContentType string HasBoundary bool // contains filtered or unexported fields }
func NewGoGenerator ¶
func NewGoGenerator(options *common.CurlOptions) *GoGenerator
func (GoGenerator) AdditionalDeclaration ¶
func (self GoGenerator) AdditionalDeclaration() string
func (GoGenerator) ClientBody ¶
func (self GoGenerator) ClientBody() string
func (GoGenerator) FilePath ¶
func (self GoGenerator) FilePath() string
func (GoGenerator) Method ¶
func (self GoGenerator) Method() string
func (GoGenerator) ModifyRequest ¶
func (self GoGenerator) ModifyRequest() string
func (GoGenerator) PrepareClient ¶
func (self GoGenerator) PrepareClient() string
func (*GoGenerator) SetDataForBody ¶
func (self *GoGenerator) SetDataForBody()
func (*GoGenerator) SetDataForPostForm ¶
func (self *GoGenerator) SetDataForPostForm()
func (*GoGenerator) SetDataForUrl ¶
func (self *GoGenerator) SetDataForUrl()
func (*GoGenerator) SetFormForBody ¶
func (self *GoGenerator) SetFormForBody()
func (GoGenerator) Url ¶
func (self GoGenerator) Url() string
Click to show internal directories.
Click to hide internal directories.