Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wasilak/go-hello-world
https://github.com/wasilak/go-hello-world
echo-framework go golang helloworld
Last synced: about 8 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/wasilak/go-hello-world
- Owner: wasilak
- Created: 2019-12-02T19:19:20.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2024-11-06T16:59:09.000Z (9 days ago)
- Last Synced: 2024-11-06T17:48:55.691Z (9 days ago)
- Topics: echo-framework, go, golang, helloworld
- Language: Go
- Homepage: https://wasilak.github.io/go-hello-world/
- Size: 4.6 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
![icon_small](icon_small.jpg)
# go-hello-world
[![Maintainability](https://api.codeclimate.com/v1/badges/7ada7f029e74c805ec1c/maintainability)](https://codeclimate.com/github/wasilak/go-hello-world/maintainability)
Simple web app for testing e.g. container orchestrators, autoscalers etc.
```
GOOS=linux GOARCH=amd64 go build ./...
```docker build (multiarch):
```
# setup, if needed
docker buildx create --use --append --name mybuilder unix:///var/run/docker.sock# actual build
docker buildx build --tag quay.io/wasilak/go-hello-world --platform linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6 . --push
```How to run (example):
```bash
OTEL_EXPORTER_OTLP_PROTOCOL=grpc OTEL_RESOURCE_ATTRIBUTES="service.name=go-hello-world,service.version=v0.0.6,deployment.environment=test" OTEL_EXPORTER_OTLP_ENDPOINT="https://localhost:4317" OTEL_METRICS_EXPORTER="otlp" OTEL_LOGS_EXPORTER="otlp" go run . -listen-addr :3000 -session-key f98ehv9273hvreof -otel-enabled
```