view vendor/github.com/yosssi/gcss/comment.go @ 74:d8727551f403 draft

The Empress (III) * Change the way how versions are handled in version.go (to ease `go install`) * Upgrade yaml.v2 to yaml.v3 Signed-off-by: Izuru Yakumo <yakumo.izuru@chaotic.ninja>
author yakumo.izuru
date Mon, 04 Dec 2023 00:54:29 +0000
parents 787b5ee0289d
children
line wrap: on
line source

package gcss

import "io"

// comment represents a comment of CSS.
type comment struct {
	elementBase
}

// WriteTo does nothing.
func (c *comment) WriteTo(w io.Writer) (int64, error) {
	return 0, nil
}

// newComment creates and returns a comment.
func newComment(ln *line, parent element) *comment {
	return &comment{
		elementBase: newElementBase(ln, parent),
	}
}