transforms

package
v6.38.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 1, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package transforms provides common transformations from Conjure spec types and to Go specific types.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArgName added in v6.16.0

func ArgName(in string) string

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 Export

func Export(input string) string

func ExportedFieldName

func ExportedFieldName(input string) string

func PackagePath

func PackagePath(conjurePkgName string) string

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 Private

func Private(input string) string

func PrivateFieldName

func PrivateFieldName(input string) string

func SafeName

func SafeName(in string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL