Files
easyjson/parser/testdata/comments.go.mod
T
Ivan Boyarkin 237a098526 parser: Fix go.mod endline comments parsing
It's required because:
- go.mod file can contain comments
- easyjson should respect comments and be able to parse go.mod

This commit replaces the logic of parsing go.mod file with the original
one from golang.org/x/mod/modfile package. Tests have been
introduced to check the behavior of `getModulePath` function.

Ref:
- https://golang.org/cmd/go/#hdr-The_go_mod_file
2020-03-02 16:35:04 +01:00

5 lines
143 B
Modula-2

// first-line comment which should bresk anything
module example.com/user/project // end-line comment which should not break anything
go 1.13