Skip to content

Commit

Permalink
Update template
Browse files Browse the repository at this point in the history
  • Loading branch information
hollow committed Nov 23, 2023
1 parent 5324343 commit 68d6bae
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 11 deletions.
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

0 comments on commit 68d6bae

Please sign in to comment.