|
@@ -69,12 +69,9 @@ func main() {
|
|
|
removePaddingFieldsRegex := regexp.MustCompile(`Pad_cgo_\d+`)
|
|
removePaddingFieldsRegex := regexp.MustCompile(`Pad_cgo_\d+`)
|
|
|
b = removePaddingFieldsRegex.ReplaceAll(b, []byte("_"))
|
|
b = removePaddingFieldsRegex.ReplaceAll(b, []byte("_"))
|
|
|
|
|
|
|
|
- // We refuse to export private fields on s390x
|
|
|
|
|
- if goarch == "s390x" && goos == "linux" {
|
|
|
|
|
- // Remove padding, hidden, or unused fields
|
|
|
|
|
- removeFieldsRegex = regexp.MustCompile(`\bX_\S+`)
|
|
|
|
|
- b = removeFieldsRegex.ReplaceAll(b, []byte("_"))
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ // Remove padding, hidden, or unused fields
|
|
|
|
|
+ removeFieldsRegex = regexp.MustCompile(`\bX_\S+`)
|
|
|
|
|
+ b = removeFieldsRegex.ReplaceAll(b, []byte("_"))
|
|
|
|
|
|
|
|
// Remove the first line of warning from cgo
|
|
// Remove the first line of warning from cgo
|
|
|
b = b[bytes.IndexByte(b, '\n')+1:]
|
|
b = b[bytes.IndexByte(b, '\n')+1:]
|