Skip to content

Files

This branch is 6 commits behind wso2/choreo-samples:main.

hello-world-go-task

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Oct 30, 2023
Feb 20, 2024
Nov 1, 2023

Hello World Go

Sample for Hello World task. Print "Hello World" when run the main.go

Prerequisites

  1. Fork the repositoy

Getting started

Please refer to the Choreo documentation under the Develop an Application with Buildpacks to learn how to deploy the application.

  1. Select Manual Task Card from Component Creation Wizard

  2. Select Go as the buildpack. Fill as follow according to selected Buildpack.

    Field Description
    Name Hello World Task
    Description Print Hello World
    GitHub Account Your account
    GitHub Repository choreo-samples
    Branch main
    Buildpack Go
    Select Go Project Directory hello-world-go-task
    Language Version 1.x
  3. Click Create. Once the component creation is complete, you will see the component overview page.

  4. Deploy the created component

Execute the Sample Locally

Navigate to the Go application directory

cd hello-world-go-task

Run the service

go run main.go