INNER CODE UNIT · Go
main
Azure-Samples/container-apps-store-api-microservice · go-service/main.go:9
func main() {
a := App{}
client, err := dapr.NewClient()
if err != nil {
panic(err)
}
a.Initialize(
client,
)
port, ok := os.LookupEnv("PORT");
if !ok {
port = "8050"
}
binding := fmt.Sprintf(":%s", port)