overhaul of the rest package, made it a little bit more testable(WIP) and understandable

This commit is contained in:
Colin Henry 2020-08-22 17:00:38 -07:00
parent d4a7732535
commit ad5ed58296
3 changed files with 13 additions and 1 deletions

10
.drone.yml Normal file
View File

@ -0,0 +1,10 @@
kind: pipeline
type: docker
name: default
steps:
- name: test
image: golang
commands:
- go test ./...
- go build ./...

View File

@ -2,6 +2,8 @@
A mix of useful packages, some are works in progress.
[![Build Status](https://ci.j5y.xyz/api/badges/jchenry/x/status.svg)](https://ci.j5y.xyz/jchenry/x)
## Install
```

View File

@ -7,7 +7,7 @@ import (
)
// EntityHandler returns a handler that provides restful verbs, following a CRUD model
func EntityHandler(
func restVerbHandler(
get gohttp.Handler,
post gohttp.Handler,
put gohttp.Handler,