You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
572 B
28 lines
572 B
// Copyright 2017 Felix Lange <fjl@twurst.com>.
|
|
// 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
|
|
}
|
|
|