golang

package
v0.0.0-...-274c30f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 19, 2015 License: MIT Imports: 7 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL