generated from TBD54566975/tbd-project-template
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: make
ftl build
et al work with Go (#775)
- `ftl-go` has been deleted. - There must be a 1:1 mapping between FTL modules and Go modules. - Updated `ftl init go` to generate a valid module. - Updated all of the Go examples, including online-boutique, which can now be trivially started with `ftl dev ./examples/online-boutique` - The tooling is quite restrictive about code layout at the moment, but we can come back to that later. eg. Create, deploy and call a new module. ``` 🐚 ~/dev/ftl $ ftl init go examples echo2 info: Initializing FTL Go module echo2 in examples info: Running go mod tidy 🐚 ~/dev/ftl $ ftl deploy examples/echo2 info: Creating deployment for module echo2 info: Building Go module 'echo2' info: Generating external modules info: Extracting schema info: Generating main module info: Compiling info: Uploading 1/1 files info: Uploaded examples/echo2/_ftl/main as ba6f7f20ee5dac4e97197633348b5bb41e68e63c7e2d9b1da614d0a011b83872:main info: Created deployment echo2-0a1cebbfcc 🐚 ~/dev/ftl $ ftl call echo2.echo {"message":"Hello, anonymous!"} ``` --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
- Loading branch information
1 parent
ff04614
commit 0aa5428
Showing
86 changed files
with
1,128 additions
and
1,268 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.