reset

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Comments

func Comments(node dst.Node)

Comments [func Comments(node dst.Node)] is a function that removes comments from the specified Go Abstract Syntax Tree (AST) node. This function accepts a node of type dst.Node and recursively traverses the AST to remove all comments associated with the specified node. The types of nodes that have their comments removed include *dst.File, *dst.GenDecl, *dst.FuncDecl, *dst.ValueSpec, and *dst.TypeSpec.

Types

This section is empty.

Jump to

Keyboard shortcuts

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