Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update template #27

Merged
merged 1 commit into from
Nov 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .copier-answers.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
# Changes here will be overwritten by Copier
_commit: v2.4.0
_commit: v2.4.4
_src_path: gh:remerge/template
is_golang_library: true
project_id: go-server
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
- run: echo "GO_VERSION=$(grep '^go ' < go.mod | awk '{print $2}')" >> "$GITHUB_ENV"

- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
- uses: webfactory/[email protected]
with:
ssh-private-key: "${{ secrets.DEPLOY_USER_SSH_KEY }}"
Expand Down
10 changes: 2 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
# go-server
# Go Server Framework

Package `server` provides a

## Install

```bash
go get github.com/remerge/go-server
```
Package `server` provides an opinionated server framework in Go.

## Usage

Expand Down
4 changes: 2 additions & 2 deletions go.mk
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,10 @@ GOFMT_EXCLUDES ?= %.pb.go %_gen.go %_easyjson.go
GOFMT_SOURCES = $(filter-out $(GOFMT_EXCLUDES),$(GO_SOURCES))

.fmt-gofmt: $(GOFMT_SOURCES) ## format go sources
gofmt -w -s -l $^
if [[ "$(GOFMT_SOURCES)" != "" ]]; then gofmt -w -s -l $(GOFMT_SOURCES); fi

.fmt-goimports: $(GOIMPORTS_LINTER) $(GOFMT_SOURCES) ## group and correct imports
$(TOOLS)/$< -w -l $(GOFMT_SOURCES)
if [[ "$(GOFMT_SOURCES)" != "" ]]; then $(TOOLS)/$< -w -l $(GOFMT_SOURCES); fi

# Dependencies cleanup

Expand Down
Loading