Code Snippets Go Module

Short texts Go Module 🧑‍💻 Code snippets Go Module ✍️ Reading lists Go Module 👀

go.mod

module example go 1.15 require ( github.com/BurntSushi/toml v0.3.1 github.com/dgrijalva/jwt-go v3.2.0+incompatible github.com/emicklei/go-restful-openapi/v2 v2.2.1 github.com/emicklei/go-restful/v3 v3.3.1 github.com/go-ldap/ldap/v3 v3.2.4 github.com/go-redis/redis/v8 v8.4.0 github.com/gogo/protobuf v1.3.1 github.com/golang/protobuf v1.4.3 github.com/imdario/mergo v0.3.11 // indirect github.com/schollz/logger v1.2.0 github.com/stretchr/testify v1.6.1 github.com/urfave/cli v1.22.4 github.com/xanzy/go-gitlab v0.38.2 golang.org/x/net v0.0.0-20201021035429-f5854403a974 // indirect golang.org/x/time v0.0.0-20200630173020-3af7569d3a1e // indirect golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013 google.golang.org/grpc v1.33.2 google.golang.org/protobuf v1.25.0 gorm.io/driver/mysql v1.0.3 gorm.io/gorm […]

go.mod

# release-note aggregator – identifies PRs merged since the last release with `kind` and release notes, separates by kind, prints Markdown to stdout – written in Go instead of Bash – makes as few GitHub API requests as possible, to avoid rate limits – when it does hit rate limiting, it’ll wait for quota and […]

test

From within this directory: “` KO_DOCKER_REPO=gcr.io/my-project go run ./ “` image: ko://github.com/google/ko/cmd/ko module github.com/imjasonh/kotest go 1.14 require ( github.com/google/go-containerregistry v0.0.0-20200310013544-4fe717a9b4cb github.com/google/ko v0.5.1 gopkg.in/yaml.v3 v3.0.0-20200506231410-2ff61e1afc86 )

OpenTelemetry + APM Metrics issue

module otel-example go 1.17 require ( github.com/rs/zerolog v1.25.0 go.opentelemetry.io/otel v1.0.1 go.opentelemetry.io/otel/exporters/otlp/otlpmetric v0.24.0 go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc v0.24.0 go.opentelemetry.io/otel/metric v0.24.0 go.opentelemetry.io/otel/sdk v1.0.1 go.opentelemetry.io/otel/sdk/metric v0.24.0 google.golang.org/grpc v1.41.0 ) require ( github.com/cenkalti/backoff/v4 v4.1.1 // indirect github.com/golang/protobuf v1.5.2 // indirect github.com/grpc-ecosystem/grpc-gateway v1.16.0 // indirect go.opentelemetry.io/otel/internal/metric v0.24.0 // indirect go.opentelemetry.io/otel/sdk/export/metric v0.24.0 // indirect go.opentelemetry.io/otel/trace v1.0.1 // indirect go.opentelemetry.io/proto/otlp v0.9.0 // indirect golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4 […]