schematotext

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewArrayType

func NewArrayType(data interface{}, opts ...func(option *translatorOptions)) *arrayType

func NewBaseType

func NewBaseType(data interface{}, opts ...func(option *translatorOptions)) *baseType

func NewDefaultType

func NewDefaultType(data interface{}, opts ...func(option *translatorOptions)) *defaultType

func NewObjectType

func NewObjectType(data interface{}, opts ...func(option *translatorOptions)) *objectType

func NewStringType

func NewStringType(data interface{}, opts ...func(option *translatorOptions)) *stringType

func WithCurrentPackage

func WithCurrentPackage(currentPkg string) func(options *translatorOptions)

func WithDefaultObjectName

func WithDefaultObjectName(defaultObjectName string) func(options *translatorOptions)

func WithRestrictExternalTypes

func WithRestrictExternalTypes(restrictExternalTypes bool) func(options *translatorOptions)

Types

type ToTextTranslator

type ToTextTranslator interface {
	ToText() (string, error)
}

func NewDataTypeToTextTranslator

func NewDataTypeToTextTranslator(element interface{}, opts ...func(option *translatorOptions)) ToTextTranslator

Jump to

Keyboard shortcuts

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