Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CommentGroupString ¶
func CommentGroupString(commentGroup *ast.CommentGroup) string
Types ¶
type FileSource ¶
type FileSource struct { PackageName string FilePath string SourceRelativePath string StructSources StructSourceSlice }
type FileSourceSlice ¶
type FileSourceSlice []*FileSource
type PackageSource ¶
type PackageSource struct { PackageName string PackageImportPath string DirPath string SourceRelativePath string FileSources FileSourceSlice }
type PackageSourceSlice ¶
type PackageSourceSlice []*PackageSource
func (*PackageSourceSlice) AddPackageSource ¶
func (pss *PackageSourceSlice) AddPackageSource(packageSource *PackageSource)
type StructSource ¶
type StructSource struct { PackageName string Position token.Position TypeSpec *ast.TypeSpec StructType *ast.StructType CommentGroup *ast.CommentGroup // contains filtered or unexported fields }
func (*StructSource) ExtractTableName ¶
func (s *StructSource) ExtractTableName(ctx context.Context, goColumnTag string) string
func (*StructSource) GoString ¶
func (s *StructSource) GoString() string
type StructSourceSlice ¶
type StructSourceSlice []*StructSource
Click to show internal directories.
Click to hide internal directories.