본 레파지스토리는 Azure Functions에 Go언어 사용 하기를 참고하여서 개발하였습니다.
Go언어의 경우에는 메인으로 지원하지 않고 있어서 사용 지정 처리기로 개발하였습니다.
- golang (go version go1.17.6 darwin/amd64)
$ func init
Select a number for worker runtime:
1. dotnet
2. dotnet (isolated process)
3. node
4. python
5. powershell
6. custom
Choose option: 6
custom
Writing .gitignore
Writing host.json
Writing local.settings.json
Writing /Users/hyun.sang/dev/GitHub/Azure-Functions-Golang/.vscode/extensions.json
$ func new
Select a number for template:
1. Azure Blob Storage trigger
2. Azure Cosmos DB trigger
3. Azure Event Grid trigger
4. Azure Event Hub trigger
5. HTTP trigger
6. IoT Hub (Event Hub)
7. Kafka trigger
8. Azure Queue Storage trigger
9. RabbitMQ trigger
10. SendGrid
11. Azure Service Bus Queue trigger
12. Azure Service Bus Topic trigger
13. SignalR negotiate HTTP trigger
14. Timer trigger
Choose option: 5
HTTP trigger
Function name: [HttpTrigger] hello-world
Writing /Users/hyun.sang/dev/GitHub/Azure-Functions-Golang/hello-world/function.json
The function "hello-world" was created successfully from the "HTTP trigger" template.
$ go mod init github.com/Dev-HyunSang/Azure-Functions-Golang
$ go mod tidy
$ go get -u github.com/gofiber/fiber/v2