diff

package
v2.8.0 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2023 License: Apache-2.0 Imports: 8 Imported by: 1

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