types

package
v0.27.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type String

type String string

String acts as a builtin string but provides useful casing methods.

func (String) CamelCase

func (s String) CamelCase() string

CamelCase transforms strings into camelCase casing. It is often used for json mappings.

func (String) GoCase

func (s String) GoCase() string

GoCase transforms strings into Go-style casing, meaning uppercase including Go casing edge cases.

func (String) GoLowerCase

func (s String) GoLowerCase() string

GoLowerCase transforms strings into Go-style lowercase casing. It is like GoCase but used for private fields.

func (String) PrismaGoCase

func (s String) PrismaGoCase() string

PrismaGoCase transforms `relevance` into `Relevance_`

func (String) PrismaInternalCase

func (s String) PrismaInternalCase() string

PrismaInternalCase transforms `relevance` into `_relevance`

func (String) String

func (s String) String() string

func (String) Tag

func (s String) Tag(isRequired bool) string

Tag returns the struct tag value of a field.

type Type

type Type string

Type acts as a builtin string but provides useful methods for type DMMF values.

func (Type) CamelCase

func (t Type) CamelCase() string

CamelCase transforms strings into camelCase casing. It is often used for json mappings.

func (Type) GoCase

func (t Type) GoCase() string

GoCase transforms strings into Go-style lowercase casing. It is like GoCase but used for private fields.

func (Type) GoLowerCase

func (t Type) GoLowerCase() string

GoLowerCase transforms strings into Go-style lowercase casing. It is like GoCase but used for private fields.

func (Type) String

func (t Type) String() string

func (Type) Value

func (t Type) Value() string

Value returns the native value of a type.

Jump to

Keyboard shortcuts

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