command
module
Version:
v0.0.0-...-2bcb28c
Opens a new window with list of versions in this module.
Published: May 12, 2021
License: MIT
Opens a new window with license information.
Imports: 14
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Modify Go struct field type. It matches type by its string representation and replaces to another string.
Mostly useful for primitive types or types located in the same package. Maybe can be useful for external package types if followed by goimports
.
My use case was replacing []byte
type in a Protobuf generated code to custom Raw
type.
Like this:
gomodifytype -file proxy.pb.go -all -w -from "[]byte" -to "Raw"
Thanks to https://github.com/fatih/gomodifytags for the AST modification example.
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.