Skip to content

Commit

Permalink
fixed golint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
xujiajun committed Oct 15, 2018
1 parent 098ee21 commit 97cad2b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions dict.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"strings"
)

// DefaultMinTokenLen is default minimum tokenLen
var DefaultMinTokenLen = 2

// DictRecord records dict meta info
Expand Down
2 changes: 2 additions & 0 deletions minimum_matching.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@ import (
"strings"
)

// MinMatch records dict and dictPath
type MinMatch struct {
dict *Dict
dictPath string
}

// NewMinMatch returns a newly initialized MinMatch object
func NewMinMatch(dictPath string) *MinMatch {
return &MinMatch{
dictPath: dictPath,
Expand Down
1 change: 1 addition & 0 deletions tokenizer.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package gotokenizer

// Tokenizer defines interface of Tokenizer
type Tokenizer interface {
GetFrequency(text string) (map[string]int, error)
Get(text string) ([]string, error)
Expand Down

0 comments on commit 97cad2b

Please sign in to comment.