aboutsummaryrefslogtreecommitdiff
path: root/headers
diff options
context:
space:
mode:
authorStefan Majewsky <majewsky@gmx.net>2018-02-07 19:33:36 +0100
committerStefan Majewsky <majewsky@gmx.net>2018-02-07 19:33:36 +0100
commit801b5207dcbf3438e7612e1f7edc9de32ce0780c (patch)
tree6f0454ec49bf769e361cfa393290efc68583ca67 /headers
parent8bddda344201d9f034b5e9c2e9c37a25caeb80cb (diff)
downloadgo-schwift-801b5207dcbf3438e7612e1f7edc9de32ce0780c.tar.gz
switch from reflection to code generation
This allows me to make the API much simpler. More simplification forthcoming in the following commit; I just want to make a cut since `make test` is happy right now.
Diffstat (limited to 'headers')
-rw-r--r--headers/base.go10
1 files changed, 9 insertions, 1 deletions
diff --git a/headers/base.go b/headers/base.go
index 1357e82..3b5b3ec 100644
--- a/headers/base.go
+++ b/headers/base.go
@@ -20,6 +20,14 @@ package headers
//Base is an implementation detail.
type Base struct {
- H Headers
+ H Interface
K string
}
+
+//Interface is an implementation detail.
+type Interface interface {
+ Clear(string)
+ Del(string)
+ Get(string) string
+ Set(string, string)
+}