Documentation ¶
Overview ¶
Package transforms provides common transformations from Conjure spec types and to Go specific types.
Index ¶
- func ArgName(in string) string
- func Documentation(documentation *spec.Documentation) string
- func Export(input string) string
- func ExportedFieldName(input string) string
- func PackagePath(conjurePkgName string) string
- func Private(input string) string
- func PrivateFieldName(input string) string
- func SafeName(in string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArgName ¶ added in v6.16.0
ArgName returns the input string with "Arg" appended to it. This transformation is done to ensure that argument variable names do not shadow any package names.
func Documentation ¶
func Documentation(documentation *spec.Documentation) string
func ExportedFieldName ¶
func PackagePath ¶
PackagePath takes a period-delimited Conjure package path and converts it to a slash-delimited one. If the input path has 3 or more segments, the first two segments are omitted. For example, "com.example.folder1.folder2" -> "folder1/folder2".
func PrivateFieldName ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.