dstequal

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package dstequal provides deep equality check operations for DST (https://github.com/dave/dst) nodes. This is a simple find-and-replace fork of https://github.com/go-toolsmith/astequal.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decl

func Decl(x, y dst.Decl) bool

Decl reports whether two DST declarations are structurally (deep) equal.

Nil arguments are permitted: true is returned if x and y are both nils. dst.BadDecl comparison always yields false.

func Expr

func Expr(x, y dst.Expr) bool

Expr reports whether two DST expressions are structurally (deep) equal.

Nil arguments are permitted: true is returned if x and y are both nils. dst.BadExpr comparison always yields false.

func Node

func Node(x, y dst.Node) bool

Node reports whether two DST nodes are structurally (deep) equal.

Nil arguments are permitted: true is returned if x and y are both nils.

See also: Expr, Stmt, Decl functions.

func Stmt

func Stmt(x, y dst.Stmt) bool

Stmt reports whether two DST statements are structurally (deep) equal.

Nil arguments are permitted: true is returned if x and y are both nils. dst.BadStmt comparison always yields false.

Types

This section is empty.

Jump to

Keyboard shortcuts

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