17 Commits

Author SHA1 Message Date
Alexandr Mayorskiy 8ab5ff9cd8 fix parser for go 1.15 (multiline comments) 2020-08-12 14:42:29 +03:00
Alexandr Mayorskiy f3f97e8f15 fix parser for go 1.15 (#304)
* fix parser for go 1.15
2020-08-12 14:22:55 +03:00
Pavel Parshin 0c9f71dfd2 Fixed skip detection and added correct test 2020-05-10 14:08:06 +03:00
Pavel Parshin e25e66fa75 Added pragma easyjson:skip to exclude structs from generating stage
It allows manually control which struct should be skipped when using option `-all`.
2020-05-10 13:34:43 +03:00
Alexandr Mayorskiy 7af8f522e8 Merge branch 'default_gopath' of git://github.com/stek29/easyjson into stek29-default_gopath 2020-04-12 17:41:58 +03:00
GoWebProd 2d0de5a8b6 Merge branch 'master' into patch/typespec-docs 2020-03-30 23:27:08 +03:00
rappleyard_depoel 24b3ef1d37 Issue #217: handling of _test.go files
If a directory is passed to the command line tool, the directory
includes test files, and those test files specify types that the tool is
interested in (e.g. struct types) then it will trigger a compiler error,
fail to generate, and leave some detritus in the target directory.

We should filter out test files from consideration to prevent this error
from occuring. Future development could include a command line option to
process test files, if anyone wants that (unlikely).
2019-04-02 14:32:02 +01:00
warnar boekkooi fc8e2d7bfe Add support for TypeSpec docs
Since doc's can be added on both the generic declaration (GenDecl) as well as on the type declaration (TypeSpec) we need to check both.
In order to check both declaration we copy the GenDecl docs to the TypeSpec docs if the TypeSpec has no documentation.
2019-03-28 17:45:34 +01:00
Viktor Oreshkin ca8ad92f71 Use go/build to get default GOPATH 2018-09-12 02:57:09 +03:00
Aleksandr Zelenin e0ec68febc go modules support 2018-08-23 03:47:26 +03:00
Irioth 48f134c461 #162 using default GOPATH for win and trim last newline character 2018-07-16 19:07:20 +03:00
James Nugent 0ee3591897 Detect GOPATH if not specified in $GOPATH
It is no longer required to have the GOPATH environment variable set -
it now defaults to ~/go, but irrespective of whether the value is the
default or not it can be found in the standard output of `go env
GOPATH`.

This commit uses that value if the GOPATH environment variable is not
set.
2017-07-28 15:13:56 -05:00
Vasily Romanov 88c4f6c7a5 Revert "Updated getPkgPath to use package filepath instead of path" 2017-04-25 00:15:07 +03:00
flat20 837ced4047 Updated getPkgPath to use package filepath, rather than path. Fixes an issue with os.Getwd() returning a random letter case drive letter on Windows, making the working directory unequal to GOPATH. 2017-04-18 19:43:39 +01:00
hjusforgues f8d1fd78de Allow to process entire packages at once 2016-10-18 18:01:13 +07:00
Victor Starodub 5ba5887e4b Allow generating marshalers for 'renamed' structs. 2016-05-05 15:38:18 +03:00
Victor Starodub 5d497db34c Initial commit. 2016-02-28 03:16:29 +03:00