diff

package
v2.11.1 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompareGoStructs

func CompareGoStructs(aFile string, bFile string) (string, error)

CompareGoStructs returns an empty string iff aFile and bFile are valid go files and the top level go struct declarations have the same fields independent of order. It returns a semi-readable diff of the AST in case the two files are different. Returns error when either of the go files are not parseable.

Types

This section is empty.

Jump to

Keyboard shortcuts

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