startup

module
v0.0.0-...-3a3087e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 25, 2022 License: MIT

README

Go Startup Lambda

Go Report Card example workflow

Go Resources


project layout

packages

go lambda api proxy

fiber

uber style guide

go docs

go by example

practical go

effective go

awesome go

go report card

Commands


# ginkgo
go install -mod=mod github.com/onsi/ginkgo/v2/ginkgo@latest
ginkgo -r
# lint
go get -u github.com/golangci/golangci-lint/cmd/golangci-lint
golangci-lint run

Example Dockerfile

FROM golang:1.19 as build

WORKDIR /go/src/app

COPY go.mod ./
COPY go.sum ./

RUN go mod download

COPY . .

ENV GOPATH /

RUN CGO_ENABLED=0 go build -o /go/bin/app ./cmd/startup

FROM gcr.io/distroless/static-debian11

COPY --from=build /go/bin/app /

CMD ["/app"]
	
# dependabot.yml
version: 2
updates:
  - package-ecosystem: gomod
    directory: /
    schedule:
      interval: daily

Directories

Path Synopsis
api
dev
cmd
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL