analyzer

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2023 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Overview

Package analyzer analyze the schema

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Analyze

func Analyze(ctx *parser.Context, s *schema.Schema, content string) any

Analyze analyze a schema.Schema, returns the result

func SetFormatter

func SetFormatter(formatHandler FormatHandler)

SetFormatter set the formatter

Types

type FormatHandler

type FormatHandler interface {
	// Format the data to the given schema.SchemaType
	Format(data any, format schema.Type) (any, error)
}

FormatHandler schema property formatter

func GetFormatter

func GetFormatter() FormatHandler

GetFormatter get the formatter

Jump to

Keyboard shortcuts

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