Skip to content

Commit 8ff872d

Browse files
authored
Merge pull request #11 from The-Mod-Elephant/feature/interface
feature/interface
2 parents 6a3dc4a + b3a5e3f commit 8ff872d

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

bg/all.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ import (
88
"strings"
99
)
1010

11+
type BG interface {
12+
Write(w io.Writer) error
13+
WriteJson(w io.Writer) error
14+
}
15+
1116
func min(x, y int) int {
1217
if x < y {
1318
return x

bg/tis.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,8 +283,7 @@ func (tis *Tis) Write(w io.Writer) error {
283283
}
284284

285285
func NewTis() *Tis {
286-
tis := Tis{version: 1}
287-
return &tis
286+
return &Tis{version: 1}
288287
}
289288

290289
func OpenTis(r io.ReadSeeker, name string, root string) (*Tis, error) {

0 commit comments

Comments
 (0)