arcgengo

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2023 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ColumnTagGoCommentLineRegex

func ColumnTagGoCommentLineRegex() *regexp.Regexp

func Generate

func Generate(ctx context.Context, src string) error

Types

type ARCSource

type ARCSource struct {
	// Source for sorting
	Source token.Position
	// TypeSpec is used to guess the table name if the CREATE TABLE annotation is not found.
	TypeSpec *ast.TypeSpec
	// StructType is used to determine the column name. If the tag specified by --column-tag-go is not found, the field name is used.
	StructType   *ast.StructType
	CommentGroup *ast.CommentGroup
}

type ARCSourceSet

type ARCSourceSet struct {
	Source      token.Position
	Filename    string
	PackageName string
	ARCSources  []*ARCSource
}

type ARCSourceSets

type ARCSourceSets []*ARCSourceSet

Jump to

Keyboard shortcuts

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