我已经安装好了。但是,当我这样做时:
go get -u github.com/dmlittle/scenery
我得到:
# github.com/dmlittle/scenery/pkg/parser
go/src/github.com/dmlittle/scenery/pkg/parser/parser.go:98:20: cannot use &SceneryDefinition literal (type *SceneryDefinition) as type lexer.Definition in argument to participle.Lexer:
*SceneryDefinition does not implement lexer.Definition (wrong type for Lex method)
have Lex(io.Reader) (lexer.Lexer, error)
want Lex(string, io.Reader) (lexer.Lexer, error)
go/src/github.com/dmlittle/scenery/pkg/parser/parser.go:116:21: not enough arguments in call to p.ParseString
have (string, *Plan)
want (string, string, interface {}, ...participle.ParseOption)
go/src/github.com/dmlittle/scenery/pkg/parser/scanner.go:39:10: undefined: lexer.Errorf
go/src/github.com/dmlittle/scenery/pkg/parser/scanner.go:82:26: undefined: lexer.Errorf
有什么建议么?
潇湘沐
相关分类