16 lines
143 B
Go
16 lines
143 B
Go
|
package editor
|
||
|
|
||
|
type row struct {
|
||
|
chars []rune
|
||
|
}
|
||
|
|
||
|
func NewRow() *row {
|
||
|
return &row {}
|
||
|
}
|
||
|
|
||
|
func (r *row) Size() int {
|
||
|
return len(r.chars)
|
||
|
}
|
||
|
|
||
|
|