diff --git a/go_coverter/go_coverter.go b/go_coverter/go_coverter.go index 9a4349c..1864799 100644 --- a/go_coverter/go_coverter.go +++ b/go_coverter/go_coverter.go @@ -2,6 +2,7 @@ package go_coverter import ( "context" + "encoding/json" "fmt" "github.com/drone/drone-go/drone" @@ -16,7 +17,12 @@ func New() converter.Plugin { type plugin struct{} func (p *plugin) Convert(ctx context.Context, req *converter.Request) (*drone.Config, error) { - fmt.Printf("%+v", *req) + resp, err := json.Marshal(req) + if err != nil { + fmt.Printf("%+v", err) + return nil, err + } + fmt.Printf("%s", string(resp)) return &drone.Config{ Data: req.Config.Data, }, nil