Special block for functions Annotations #70940
Labels
LanguageChange
Suggested changes to the Go language
LanguageChangeReview
Discussed by language change review committee
Proposal
Go Programming Experience
Intermediate
Related Idea
Has this idea, or one like it, been proposed before?
no
Does this affect error handling?
no
Is this about generics?
no
Proposal
Some libs use godoc block for change program behavior!
Create functional optional block for functions like for fields in struct
example :
https://github.com/swaggo/gin-swagger
turn into
and we separate godoc functional and annotation functions
Language Spec Changes
optional block annotations after keyword func
Informal Change
It was use full for separate additional logic of application and documentations
Is this change backward compatible?
yes block is optional
The text was updated successfully, but these errors were encountered: