Documentation ¶
Index ¶
- Constants
- Variables
- func AddFuncOnReceiver(def *Statement, receiver, typeName, funcName string) *Statement
- func AddMarshalJSON(def *Statement, receiver, typeName string, f func(def *Group)) *Statement
- func AddRestLiDecode(def *Statement, receiver, typeName string, f func(def *Group)) *Statement
- func AddRestLiEncode(def *Statement, receiver, typeName string, f func(def *Group)) *Statement
- func AddStringer(def *Statement, receiver, typeName string, f func(def *Group)) *Statement
- func AddUnmarshalJSON(def *Statement, receiver, typeName string, f func(def *Group)) *Statement
- func AddWordWrappedComment(code *Statement, comment string) *Statement
- func Bytes() *Statement
- func ExportedIdentifier(identifier string) string
- func GetPackagePrefix() string
- func IfErrReturn(def *Group, results ...Code) *Group
- func PrivateIdentifier(identifier string) string
- func ReceiverName(typeName string) string
- func RestLiMethod(method protocol.RestLiMethod) *Statement
- func SetPackagePrefix(prefix string)
- func Write(filename string, file *File) error
- type CodeFile
- type FieldTag
Constants ¶
View Source
const ( EncodingJson = "encoding/json" Unmarshal = "Unmarshal" UnmarshalJSON = "UnmarshalJSON" Marshal = "Marshal" MarshalJSON = "MarshalJSON" Codec = "codec" RestLiEncode = "RestLiEncode" RestLiDecode = "RestLiDecode" RestLiCodec = "RestLiCodec" RestLiUrlEncoder = "RestLiUrlEncoder" RestLiReducedEncoder = "RestLiReducedEncoder" PopulateDefaultValues = "populateDefaultValues" ValidateUnionFields = "validateUnionFields" NetHttp = "net/http" ProtocolPackage = "github.com/PapaCharlie/go-restli/protocol" )
Variables ¶
View Source
var (
CommentWrapWidth = 120
)
Functions ¶
func AddFuncOnReceiver ¶
func AddFuncOnReceiver(def *Statement, receiver, typeName, funcName string) *Statement
func AddMarshalJSON ¶
func AddMarshalJSON(def *Statement, receiver, typeName string, f func(def *Group)) *Statement
func AddRestLiDecode ¶
func AddRestLiDecode(def *Statement, receiver, typeName string, f func(def *Group)) *Statement
func AddRestLiEncode ¶
func AddRestLiEncode(def *Statement, receiver, typeName string, f func(def *Group)) *Statement
func AddStringer ¶
func AddStringer(def *Statement, receiver, typeName string, f func(def *Group)) *Statement
func AddUnmarshalJSON ¶
func AddUnmarshalJSON(def *Statement, receiver, typeName string, f func(def *Group)) *Statement
func AddWordWrappedComment ¶
func AddWordWrappedComment(code *Statement, comment string) *Statement
func ExportedIdentifier ¶
func GetPackagePrefix ¶
func GetPackagePrefix() string
func IfErrReturn ¶
func IfErrReturn(def *Group, results ...Code) *Group
func PrivateIdentifier ¶
func ReceiverName ¶
func RestLiMethod ¶ added in v0.2.0
func RestLiMethod(method protocol.RestLiMethod) *Statement
func SetPackagePrefix ¶
func SetPackagePrefix(prefix string)
Types ¶
Click to show internal directories.
Click to hide internal directories.