Skip to content

Commit

Permalink
add siser
Browse files Browse the repository at this point in the history
  • Loading branch information
kjk committed Oct 8, 2021
1 parent 3556415 commit 3fee7c3
Show file tree
Hide file tree
Showing 11 changed files with 1,215 additions and 1 deletion.
22 changes: 22 additions & 0 deletions .github/workflows/biuld.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Build and test Go
on: push
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17

- name: Check out source code
uses: actions/checkout@v2

- name: Test
run: go test -v ./...

- name: Staticcheck
run: |
# go get -u honnef.co/go/tools/cmd/staticcheck
# staticcheck ./...
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,9 @@
A bunch of Go packages that I use in multiple projects.

An overview of packages:
* `filerotate` : implements a file you can write to and rotates on a schedule
(e.g. daily or hourly). I use it for log files
* `server` : a very specific abstraction over http server that allows
me to write http server that is dynamic during dev (e.g. generates .html
files from templates) and can be turned into a fully static website easily
* `siser` : Simple Serialization format
5 changes: 4 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@ module github.com/kjk/common

go 1.16

require github.com/andybalholm/brotli v1.0.3
require (
github.com/andybalholm/brotli v1.0.3
github.com/stretchr/testify v1.7.0 // indirect
)
10 changes: 10 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,2 +1,12 @@
github.com/andybalholm/brotli v1.0.3 h1:fpcw+r1N1h0Poc1F/pHbW40cUm/lMEQslZtCkBQ0UnM=
github.com/andybalholm/brotli v1.0.3/go.mod h1:fO7iG3H7G2nSZ7m0zPUDn85XEX2GTukHGRSepvi9Eig=
github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY=
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo=
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
5 changes: 5 additions & 0 deletions server/readme.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
Package `github.com/kjk/common/server` is an abstraction
over http server in Go std lib.

You won't like it, it's too different.

Those are useful snippets that use the server code for re-use.
Copy & paste & modify for your purpose.

Expand Down
Loading

0 comments on commit 3fee7c3

Please sign in to comment.