Skip to content

Commit 841f38f

Browse files
committed
refactoring
1 parent 02e27df commit 841f38f

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

examples/ansilog/main.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ func (l *logger) Tracef(format string, args ...interface{}) {
1818
fmt.Printf("TRACE: "+format, args...)
1919
}
2020

21+
var _ ansicode.Handler = (*handler)(nil)
22+
2123
type handler struct{}
2224

2325
func (*handler) Backspace() {

go.mod

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,14 @@ module github.com/danielgatis/go-ansicode
22

33
go 1.21
44

5-
require github.com/stretchr/testify v1.8.4
6-
75
require (
86
github.com/danielgatis/go-iterator v0.0.1
9-
github.com/danielgatis/go-vte v1.0.6
7+
github.com/danielgatis/go-vte v1.0.7
8+
github.com/stretchr/testify v1.8.4
9+
)
10+
11+
require (
12+
github.com/danielgatis/go-utf8 v1.0.0 // indirect
1013
github.com/davecgh/go-spew v1.1.1 // indirect
1114
github.com/pmezard/go-difflib v1.0.0 // indirect
1215
gopkg.in/yaml.v3 v3.0.1 // indirect

go.sum

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
github.com/danielgatis/go-iterator v0.0.1 h1:pTptWDVAKzR0EUdtfmFMP3v+hSetqB091V9um1DTO8I=
22
github.com/danielgatis/go-iterator v0.0.1/go.mod h1:+gTbPAMdVIKwmqw7kr/mo5IFIzz2MFiRyYylcRvgbHs=
3-
github.com/danielgatis/go-vte v1.0.6 h1:jSEGG0c3Ax8epsIKLWSeUjY4qgXxmKlBCghxK81YRrY=
4-
github.com/danielgatis/go-vte v1.0.6/go.mod h1:B3jdQWPpcskSbJTMTqb+slToseRGyT03pvjb7ILiYJE=
3+
github.com/danielgatis/go-utf8 v1.0.0 h1:M7z8heSUa2PF1NoxgD0X6LbOAqMskMf433lFP/Qtal0=
4+
github.com/danielgatis/go-utf8 v1.0.0/go.mod h1:h8SG9aqqV20w8tUD7maLYwfAeQzvjDXNP89oth2qOxM=
5+
github.com/danielgatis/go-vte v1.0.7 h1:i408LmEBBvIVjJ95ZAPx+xcgXmOZNOzCxL1VCn4DvWc=
6+
github.com/danielgatis/go-vte v1.0.7/go.mod h1:HBeSBT/XiLQRNEoYpBYrBeK2mSUkOfHvsVtb8LPmexQ=
57
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
68
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
79
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=

0 commit comments

Comments
 (0)