// Copyright 2017 Felix Lange . // Use of this source code is governed by the MIT license, // which can be found in the LICENSE file. //go:generate gencodec -type X -field-override Xo -formats json,yaml,toml -out output.go package sliceconv type replacedInt int type namedSlice []int type namedSlice2 []replacedInt type X struct { Slice []int Named namedSlice ByteString string NoConv []int NoConvNamed []int } type Xo struct { Slice []replacedInt Named namedSlice2 ByteString []byte NoConvNamed namedSlice }