hatmill/attribute/accesskey.go

17 lines
293 B
Go

package attribute
import "git.codemonkeysoftware.net/b/hatmill"
type AccessKeyCode rune
func (c AccessKeyCode) String() string {
return string([]rune{rune(c)})
}
func Accesskey(value rune) hatmill.Attrib {
return hatmill.Attrib{
Key: "accesskey",
Value: AccessKeyCode(value),
}
}