Class GolangUtil
java.lang.Object
uk.co.real_logic.sbe.generation.golang.GolangUtil
Utilities for mapping between IR and the Golang language.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringformatPropertyName(String value) Format a String as a property name.static StringformatTypeName(String value) Format a String as a type name.static StringgolangMarshalType(PrimitiveType primitiveType) Map the name of aPrimitiveTypeto a Golang marhsalling function name.static StringgolangTypeName(PrimitiveType primitiveType) Map the name of aPrimitiveTypeto a Golang primitive type name.
-
Constructor Details
-
GolangUtil
public GolangUtil()
-
-
Method Details
-
golangTypeName
Map the name of aPrimitiveTypeto a Golang primitive type name.- Parameters:
primitiveType- to map.- Returns:
- the name of the Java primitive that most closely maps.
-
golangMarshalType
Map the name of aPrimitiveTypeto a Golang marhsalling function name.- Parameters:
primitiveType- to map.- Returns:
- the name of the Java primitive that most closely maps.
-
formatPropertyName
Format a String as a property name.- Parameters:
value- to be formatted.- Returns:
- the string formatted as a property name.
-
formatTypeName
Format a String as a type name.- Parameters:
value- to be formatted.- Returns:
- the string formatted as an exported type name.
-