Documentation ¶ Index ¶ func ExtractParameters(curlCommand string) (string, map[string][]string) func GetBody(params map[string][]string) (string, bool) func GetMethod(params map[string][]string) string type Command func Parse(curlCommand string) (*Command, error) func (c Command) ToRequest() (*http.Request, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func ExtractParameters ¶ func ExtractParameters(curlCommand string) (string, map[string][]string) ExtractParameters parses the curl command and returns the URL and parameters func GetBody ¶ func GetBody(params map[string][]string) (string, bool) func GetMethod ¶ func GetMethod(params map[string][]string) string Types ¶ type Command ¶ type Command struct { URL string Headers map[string]string Body string HasBody bool Method string } func Parse ¶ func Parse(curlCommand string) (*Command, error) func (Command) ToRequest ¶ func (c Command) ToRequest() (*http.Request, error) Source Files ¶ View all Source files command.go method.go options.go parse.go Click to show internal directories. Click to hide internal directories.