strslice is intended to behave like a string slice with the additional property that when unmarshalled it can handle a string or array.
All over functions are unneeded and allow for misuse of the type.
Currently when output a strslice `fmt.Print` ends up getting used calling the `String()` method which has output which differs from the expected slice output.
Signed-off-by: Derek McGowan <derek@mcgstyle.net> (github: dmcgowan)
After getting the full test suite to run, it was found that the default
slice behavior matched what was expected in the API. Turns out, we can
remove even more code!
Signed-off-by: Stephen J Day <stephen.day@docker.com>
By removing the struct wrapper around StrSlice, we maintain the slice
properties of the type (len, cap, make, etc.) while overriding the
serialization. We get a simpler type with less pointer traversal.
Signed-off-by: Stephen J Day <stephen.day@docker.com>
This is a very docker concept that nobody elses need.
We only maintain it to keep the API backwards compatible.
Signed-off-by: David Calavera <david.calavera@gmail.com>