Documentation
¶
Index ¶
- func Args(vs ...any) []any
- func ChannelToMessageTypeName(ch asyncapi.Channel) string
- func DescribeStruct(st any) string
- func GenerateChannelPath(ch asyncapi.Channel) string
- func HasField(v interface{}, name string) bool
- func IsRequired(any asyncapi.Any, field string) bool
- func MultiLineComment(comment string) string
- func Namify(sentence string) string
- func ReferenceToStructAttributePath(ref string) string
- func ReferenceToTypeName(ref string) string
- func SnakeCase(sentence string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChannelToMessageTypeName ¶
ChannelToMessageTypeName will convert a channel to a message type name in the form of golang conventional type names.
func DescribeStruct ¶ added in v0.10.1
func GenerateChannelPath ¶ added in v0.9.0
func IsRequired ¶ added in v0.4.0
IsRequired will check if a field is required in a asyncapi struct.
func MultiLineComment ¶ added in v0.10.1
func ReferenceToStructAttributePath ¶
ReferenceToStructAttributePath will convert a reference to a struct attribute path in the form of "a.b.c" where a, b and c are struct attributes in the form of golang conventional type names.
func ReferenceToTypeName ¶
ReferenceToTypeName will convert a reference to a type name in the form of golang conventional type names.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.