comments

package
v1.11.2 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2026 License: Apache-2.0 Imports: 4 Imported by: 6 modules, 12 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Comment

type Comment struct {
	Text string
	markers.Options
}

Comment represents a comment with text and supported marker options.

func New

func New(text string, opts ...Option) (*Comment, error)

New returns a Comment by parsing Upjet markers as Options

func (*Comment) Build

func (c *Comment) Build() string

Build builds comments by adding comment prefix ("// ") to each line of the string representation of this Comment.

func (*Comment) CommentWithoutOptions

func (c *Comment) CommentWithoutOptions() *Comment

CommentWithoutOptions returns a new Comment without the Options.

func (*Comment) String

func (c *Comment) String() string

String returns a string representation of this Comment (no "// " prefix)

type Option

type Option func(*Comment)

Option is a comment option

func WithReferenceConfig

func WithReferenceConfig(cfg config.Reference) Option

WithReferenceConfig returns a comment options with the given reference config

func WithTFTag

func WithTFTag(t string) Option

WithTFTag returns a comment options with input tf tag.

Jump to

Keyboard shortcuts

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