comment

package
v0.32.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToComment

func ToComment(content string) *ast.CommentGroup

ToComment converts the provided string into an *ast.CommentGroup that represents a single-line comment that occurs on its own line. If the provided string is multiple lines (that is, if it contains at least one '\n'), then each line is turned into its own comment line.

Types

This section is empty.

Jump to

Keyboard shortcuts

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