Files
easyjson/parser/testdata
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
..