utils

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2019 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Capitalise

func Capitalise(input string) string

capitalise makes a camel-case string which starts with an upper case character.

func Decapitalise

func Decapitalise(input string) string

decapitalise makes a camel-case string which starts with a lower case character.

func FormatEvent

func FormatEvent(event abi.Event, structs map[string]*template.Struct) string

formatEvent transforms raw event representation into a user friendly one.

func FormatMethod

func FormatMethod(method abi.Method, structs map[string]*template.Struct) string

formatMethod transforms raw method representation into a user friendly one.

func Structured

func Structured(args abi.Arguments) bool

structured checks whether a list of ABI data types has enough information to operate through a proper Go struct or if flat returns are needed.

func ToCamelCase

func ToCamelCase(str string) string

func ToSnakeCase

func ToSnakeCase(str 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