elliotchance/gedcom

View on GitHub
html/core/anchor.go

Summary

Maintainability
A
0 mins
Test Coverage
package core

import (
    "io"
)

type Anchor struct {
    name string
}

func NewAnchor(name string) *Anchor {
    return &Anchor{
        name: name,
    }
}

func (c *Anchor) WriteHTMLTo(w io.Writer) (int64, error) {
    return writeSprintf(w, `<a name="%s"/>`, c.name)
}