internal

package
v0.0.0-...-bcf26a6 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoolPtr

func BoolPtr(b bool) *bool

BoolPtr returns a pointer to the given bool.

func Float64Ptr

func Float64Ptr(f float64) *float64

Float64Ptr returns a pointer to the given float64.

func FormatGoCode

func FormatGoCode(data []byte) ([]byte, error)

FormatCode formats the given Go code using gofumpt.

func OnlyOneTrue

func OnlyOneTrue(a, b, c bool) bool

OnlyOneTrue returns true if only one of the three arguments is true.

func StringPtr

func StringPtr(s string) *string

StringPtr returns a pointer to the given string.

func ToCamelCase

func ToCamelCase(s string) string

ToCamelCase converts the given string to camel case.

func ToSnakeCase

func ToSnakeCase(s string) string

ToSnakeCase converts the given string to snake case.

func WriteFileBytes

func WriteFileBytes(path string, bytes []byte) error

WriteFileBytes writes bytes to a file path. If the file already exists, it is truncated.

Types

This section is empty.

Jump to

Keyboard shortcuts

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