transformation

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2022 License: Apache-2.0 Imports: 2 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FieldsAsAnonymous

func FieldsAsAnonymous(fields []*ast.Field) []*ast.Field

FieldsAsAnonymous removes the names out of fields and returns only the types. E.g.:

(result string, err error) -> (string, error)

It creates and returns a copy of the list and does not modify the provided one.

func ToSnakeCase

func ToSnakeCase(in string) string

ToSnakeCase transforms the provided string into snake case by inserting underscores between upper case or number word boundaries and lower casing the result.

Types

This section is empty.

Jump to

Keyboard shortcuts

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