From 801b5207dcbf3438e7612e1f7edc9de32ce0780c Mon Sep 17 00:00:00 2001 From: Stefan Majewsky Date: Wed, 7 Feb 2018 19:33:36 +0100 Subject: 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. --- headers/base.go | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'headers') 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) +} -- cgit v1.2.3