domain

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Field

func Field[T any](object Object, fieldName string) (T, error)

func HasField

func HasField(object Object, fieldName string) bool

func RelativeDomainPath added in v0.1.1

func RelativeDomainPath(object Object) string

func SetField

func SetField[T any](object Object, fieldName string, value T) error

func SnakeDomainName added in v0.1.1

func SnakeDomainName(object Object) string

func TableName added in v0.1.1

func TableName(schema string, object Object) string

func ToConcrete

func ToConcrete[T Object](object Object) (T, error)

Types

type Object

type Object interface {
	DBSchema() string
	DomainCNName() string
	DomainCamelName() string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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