diff options
author | Rasmus Dahlberg <rasmus@mullvad.net> | 2022-01-31 13:01:24 +0100 |
---|---|---|
committer | Rasmus Dahlberg <rasmus@mullvad.net> | 2022-01-31 13:01:24 +0100 |
commit | a45a1bd404da9b79df3f97268ae363430638db53 (patch) | |
tree | 564034feca37f37b4aa789d23e681db00e6f488b /issues/simplify-ascii-pkg | |
parent | 8b9a1dbdf8c7f3fdccb27f393584c37fd8ee088a (diff) |
issues: simplify ascii package
Diffstat (limited to 'issues/simplify-ascii-pkg')
-rw-r--r-- | issues/simplify-ascii-pkg | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/issues/simplify-ascii-pkg b/issues/simplify-ascii-pkg new file mode 100644 index 0000000..db61a4d --- /dev/null +++ b/issues/simplify-ascii-pkg @@ -0,0 +1,10 @@ +The current ASCII package implements general key-value parsing for types. It +is more complicated than it needs to be, especially since we have so few types. + +Consider replacing the general ASCII package with something simpler. For +example, just parse values into + + type Map map[string][]string + +and add methods to dequeue a value for a key. Each type could then extract its +own values without too much code duplication. |