Versions in this module Expand all Collapse all v0 v0.4.1 Jun 18, 2021 Changes in this version + func CreateAnnotation(length int) string + func CreateDot(node dst.Node, out io.Writer) error + func FormatStructTags(fieldList *dst.FieldList) + func HasAnnotation(node dst.Node) bool + func HasAnnotationRecursive(node dst.Node) bool + func HasMultiKeyTags(lines []string) bool + func IsAnnotation(line string) bool + func ParseAnnotation(line string) int + func PrettyDiff(path string, contents []byte, results []byte) error + func WalkGraph(root *GraphNode) (string, error) + type GraphEdge struct + Dest *GraphNode + Relationship string + type GraphNode struct + Edges []*GraphEdge + Node dst.Node + Type string + Value string + func NodeToGraphNode(node dst.Node) *GraphNode + type Shortener struct + func NewShortener(config ShortenerConfig) *Shortener + func (s *Shortener) Shorten(contents []byte) ([]byte, error) + type ShortenerConfig struct + BaseFormatterCmd string + ChainSplitDots bool + DotFile string + IgnoreGenerated bool + KeepAnnotations bool + MaxLen int + ReformatTags bool + ShortenComments bool + TabLen int