gocmt

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const CommentPrefix = "sqlgen:"

Variables

This section is empty.

Functions

func ParseComment

func ParseComment(lines []string) (groups [][]string, _ error)

Types

type PackageDeclaration

type PackageDeclaration struct {
	Block [][]string
	Types []TypeDeclaration

	FileSet *token.FileSet
	Package *ast.Package
}

func ParseDir

func ParseDir(path string) (*PackageDeclaration, error)

type TypeDeclaration

type TypeDeclaration struct {
	Type    *ast.TypeSpec
	Comment []string
}

Directories

Path Synopsis
This is a package sqlgen: package this line is ignored
This is a package sqlgen: package this line is ignored

Jump to

Keyboard shortcuts

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