27 lines
283 B
Go
27 lines
283 B
Go
package main
|
|
|
|
import (
|
|
"vultras.su/core/gg"
|
|
//"fmt"
|
|
)
|
|
|
|
type Objecter interface{
|
|
}
|
|
|
|
type Wrap[V Objecter] struct {
|
|
O V
|
|
}
|
|
|
|
//func (w *Wrap)
|
|
|
|
type Context2 struct {
|
|
*gg.Context
|
|
}
|
|
|
|
type Text struct{
|
|
gg.Text
|
|
}
|
|
|
|
func (txt *Text) Update(c *Context) {
|
|
txt.Data += string(c.Runes())
|
|
}
|