gocurlexecutor is a Go package that provides functionality to parse and execute curl commands.
go get github.com/stankovic-marko/gocurlexecutorpackage main
import (
"github.com/stankovic-marko/gocurlexecutor"
)
func main() {
response, err := gocurlexecutor.Execute("curl -X GET https://github.com/stankovic-marko")
}| Option | Description | Support |
|---|---|---|
| -X | Method | ✅ |
| -H | Header | ✅ |
| -d | Data | ✅ |
| -b | Cookie data | ✅ |
| -x | Proxy | ⏳ |