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 GenerateAllImportsFile(outputDir string, codeFiles []*CodeFile)
- func IfErrReturn(def *Group, results ...Code) *Group
- func PrivateIdentifier(identifier string) string
- func ReadJSONFromFile(filename string, s interface{}) error
- func ReceiverName(typeName string) string
- func RestLiMethod(method protocol.RestLiMethod) *Statement
- func Write(filename string, file *File) error
- type CodeFile
- type FieldTag
- type MalformedPdscFileError
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 ¶
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 GenerateAllImportsFile ¶ added in v0.6.0
func IfErrReturn ¶
func IfErrReturn(def *Group, results ...Code) *Group
func PrivateIdentifier ¶
func ReadJSONFromFile ¶ added in v0.7.0
func ReceiverName ¶
func RestLiMethod ¶ added in v0.2.0
func RestLiMethod(method protocol.RestLiMethod) *Statement
Types ¶
type CodeFile ¶
func DeduplicateFiles ¶ added in v0.6.0
func NewCodeFile ¶
func (*CodeFile) Identifier ¶ added in v0.1.2
type MalformedPdscFileError ¶ added in v0.7.1
type MalformedPdscFileError struct { Filename string SyntaxError *json.SyntaxError }
func (*MalformedPdscFileError) Error ¶ added in v0.7.1
func (m *MalformedPdscFileError) Error() string
Click to show internal directories.
Click to hide internal directories.