https://github.com/openfunction/functions-framework-go
Go functions framework for OpenFunction
https://github.com/openfunction/functions-framework-go
Last synced: 6 months ago
JSON representation
Go functions framework for OpenFunction
- Host: GitHub
- URL: https://github.com/openfunction/functions-framework-go
- Owner: OpenFunction
- Created: 2021-05-25T01:20:28.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2024-06-17T01:42:39.000Z (almost 2 years ago)
- Last Synced: 2024-12-11T07:11:25.784Z (over 1 year ago)
- Language: Go
- Size: 689 KB
- Stars: 18
- Watchers: 7
- Forks: 20
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# OpenFunction Functions Framework for Go
**functions-framework-go** is an implementation of functions-framework in Go. It follows the functions-framework criteria for function-to-application conversions.
To learn more about the functions-framework criteria, refer to the following links:
- [functions-framework proposal](https://github.com/OpenFunction/OpenFunction/blob/main/docs/proposals/202105-add-function-framework.md)
- [functions-framework repository](https://github.com/OpenFunction/functions-framework)
## Usage
**functions-framework-go** requires a Go 1.15+ environment. To import this pkg, configure the following code in the `go.mod` file:
> Get the correct *version* in [Compatibility](#compatibility).
```go
require (
github.com/OpenFunction/functions-framework-go
)
```
## Samples
To learn how to use **function-framework-go** and how it works, refer to the [functions-framework samples](https://github.com/OpenFunction/samples#functions-framework-samples) in the OpenFunction Samples repository.
## Compatibility
| Version | OpenFunction | Context | Builder tag (Go) |
| ---------------------------------- | ------------ | ------- | -------------------------------------------- |
| v0.0.0-20210628081257-4137e46a99a6 | v0.3.* | v0.1.0 | v0.2.2 (openfunction/builder-go:v0.2.2-1.15) |
| v0.0.0-20210922063920-81a7b2951b8a | v0.4.* | v0.2.0 | v0.3.0 |
| v0.1.* | v0.5.* | v0.2.0 | v0.4.0 |
| v0.2.* | v0.6.* | v0.3.0 | v2-1.16+ |