https://github.com/pipedreamhq/pipedream-go
Go support for Pipedream
https://github.com/pipedreamhq/pipedream-go
Last synced: 4 months ago
JSON representation
Go support for Pipedream
- Host: GitHub
- URL: https://github.com/pipedreamhq/pipedream-go
- Owner: PipedreamHQ
- Created: 2022-01-13T23:19:15.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-10-11T16:08:31.000Z (over 3 years ago)
- Last Synced: 2025-07-01T21:37:23.320Z (7 months ago)
- Language: Go
- Size: 9.77 KB
- Stars: 7
- Watchers: 11
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# `pipedream-go`
```go
package main
import (
"fmt"
pd "github.com/PipedreamHQ/pipedream-go"
)
func main() {
// Access previous step data using pd.Steps
fmt.Println(pd.Steps)
// Alternatively, unmarshal into a type
var steps Steps
pd.MustUnmarshal(&steps)
fmt.Println(steps.Trigger.Event)
// Export data using pd.Export
data := make(map[string]interface{})
data["name"] = "Luke"
pd.Export("data", data)
}
type Steps struct {
Trigger struct {
Event struct {
// ...
} `json:"event"`
} `json:"trigger"`
}
```
## Tests
```bash
go test ./...
```