mirror of
https://gitea.com/Sirherobrine23/tea.git
synced 2024-08-21 01:37:24 +00:00
30 lines
500 B
Go
30 lines
500 B
Go
|
package types
|
||
|
|
||
|
import "regexp"
|
||
|
|
||
|
type Line struct {
|
||
|
Destination int64
|
||
|
Source int64
|
||
|
Line string
|
||
|
Truncated bool
|
||
|
ConflictMarker string
|
||
|
CommentIds []int64
|
||
|
Comments CommentsTree
|
||
|
}
|
||
|
|
||
|
var danglingSpacesRe = regexp.MustCompile("(?m) +$")
|
||
|
|
||
|
//var lineTpl = tplutil.SparseTemplate("line", `
|
||
|
//{{.Line}}
|
||
|
|
||
|
//{{if .Comments}}
|
||
|
// {{"\n"}}
|
||
|
// {{.Comments}}
|
||
|
//{{end}}
|
||
|
//`)
|
||
|
|
||
|
//func (l Line) String() string {
|
||
|
// result, _ := lineTpl.Execute(l)
|
||
|
// return result
|
||
|
//}
|