17 lines
296 B
Go
17 lines
296 B
Go
package attribute
|
|
|
|
import "gitlab.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),
|
|
}
|
|
}
|