- Fix: the issue of compilation errors caused by underline parameters. #10
- Fix: Possible null pointers during interface conversion
- Feat: Support comment
type T types
type declaration, decorator will automatically decorate proxy all methods withT
or*T
as the receiver. - Add: More detailed error message display.
- Add: Optimize the code called by the decorator, now the error message will prompt the correct line number
- Add: More test cases and usage examples
- Fix: Possible null pointers
- Feat:
decor.Context
added fieldsTargetName
、Receiver
- Add:
TargetName
the function or method name of the objective function. - Add:
Receiver
the receiver of the objective function. Ifctx.Kind == decor.KFunc
(i.e. function type), with a value of nil
- Add:
usages/methods
demonstration cases - Fix: the issue of decorators with parameters reporting errors if negative numbers are used
- Feat: support methods for using decorators
- Feat: Reconstructed the demonstration project
- Feat:
decor.Context
added 'KMethod' type - Fix: the issue of
required
lint reporting errors if negative numbers are used
- Feat: support for decorators with parameters
- Feat: the
go:decor-lint
annotation is supported to constrain the behavior of the caller - Feat: two built-in types of parameter constraints are implemented:
required
、nonzero
- Update: new Scanning Implementation for Decorator Functions
- Feat: decorator support for decorating generic functions
- Feat: add method Context.DoRef()
- Feat: streamline Code
- Feat: go mod tidy. No third-party dependencies now
- Add: documentation changes
- Feat: check repeated decoration
- Feat: check func type
- Add: test case funIsDecorator
- Add: test case importer
- Initial project
- Basic available features