Skip to content

Instantly share code, notes, and snippets.

@eladb
Created December 19, 2021 09:25
Show Gist options
  • Save eladb/f3b9926a6fd70cf5fbaa68c5b7fec092 to your computer and use it in GitHub Desktop.
Save eladb/f3b9926a6fd70cf5fbaa68c5b7fec092 to your computer and use it in GitHub Desktop.
Projen in Go
module github.com/eladb/my-test
go 1.17
require github.com/projen/projen-go/projen v0.45.0
require (
github.com/Masterminds/semver/v3 v3.1.1 // indirect
github.com/aws/jsii-runtime-go v1.49.0
)
package main
import (
"fmt"
"github.com/aws/jsii-runtime-go"
typescript "github.com/projen/projen-go/projen/typescript"
)
func main() {
fmt.Println("Hello, world!")
project := typescript.NewTypeScriptProject(&typescript.TypeScriptProjectOptions{
Name: jsii.String("my-typescript-project"),
Outdir: jsii.String("./outdir"),
DefaultReleaseBranch: jsii.String("main"),
})
project.Synth()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment