elliotchance/gedcom

View on GitHub
html/core/empty.go

Summary

Maintainability
A
0 mins
Test Coverage
package core

import "io"

// Empty is used a placeholder for a component where nothing should be visible.
type Empty struct{}

func NewEmpty() *Empty {
    return &Empty{}
}

func (c *Empty) WriteHTMLTo(w io.Writer) (int64, error) {
    return writeString(w, " ")
}