common

package
v0.0.0-...-36b426b Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ComboColTsvName = iota
	ComboColTsvType
	ComboColTsvNullable
	ComboColTsvReferences
	ComboColTsvDescription
	ComboColTsvNFields
)
View Source
const (
	ObservedTsvColName = iota
	ObservedTsvColType
	ObservedTsvColNullable
	ObservedTsvNFields
)
View Source
const (
	ObservedFnTsvName = iota
	ObservedFnTsvArgs
	ObservedFnTsvReturnType
	ObservedFnTsvNFields
)
View Source
const (
	ScrapedTsvColName = iota
	ScrapedTsvColType
	ScrapedTsvColReferences
	ScrapedTsvColDescription
	ScrapedTsvNFields
)
View Source
const CombinedColTsvHeader = "Name\tType\tNullable\tReferences\tDescription\n"
View Source
const FnTsvHeader = "Name	Args	\"Return Type\"\n"
View Source
const ObservedColTsvHeader = "Name\tType\tNullable\n"
View Source
const ScrapedColTsvHeader = "Name\tType\tReferences\tDescription\n"

Variables

This section is empty.

Functions

func CorrectTypeName

func CorrectTypeName(type_ string) string

func Fatal

func Fatal(msg string, args ...any)

func InitLogger

func InitLogger()

Types

type CombinedColData

type CombinedColData struct {
	Name, Type, Nullable, References, Description string // must be present
}

func ParseCombinedColTsv

func ParseCombinedColTsv(data string) (result []CombinedColData, err error)

func (CombinedColData) TsvRow

func (c CombinedColData) TsvRow() string

type FnData

type FnData struct {
	Name, IdentityArgs, ReturnType string
}

func ParseObservedFnTsv

func ParseObservedFnTsv(data string) (result []FnData, err error)

func (FnData) TsvRow

func (fn FnData) TsvRow() string

type ObservedColData

type ObservedColData struct {
	Name, Type, Nullable string // must be present
}

func ParseObservedTsv

func ParseObservedTsv(data string) (result []ObservedColData, err error)

func (ObservedColData) TsvRow

func (c ObservedColData) TsvRow() string

type ScrapedColData

type ScrapedColData struct {
	Name, Type, Description string // must be present
	References              string // may be absent
}

func ParseScrapedTsv

func ParseScrapedTsv(data string) (result []ScrapedColData, err error)

func (ScrapedColData) TsvRow

func (c ScrapedColData) TsvRow() string

Jump to

Keyboard shortcuts

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