astparser

package
v0.0.0-...-e840766 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateTypescriptFromParsed

func GenerateTypescriptFromParsed(structs []ParsedStruct) string

func GoTypeToTypescript

func GoTypeToTypescript(goType string) string

Types

type ParsedField

type ParsedField struct {
	Name     string
	Type     string
	GormTag  string
	JSONTag  string
	Required bool
}

type ParsedStruct

type ParsedStruct struct {
	Name      string
	TableName string
	Fields    []ParsedField
	AdminOnly bool
	Hidden    bool
}

func ParseSchemaFile

func ParseSchemaFile(filePath string) ([]ParsedStruct, error)

Jump to

Keyboard shortcuts

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