Re: [PATCH v2 2/3] golang/xenlight: Ensure comments aren't interpreted as docstrings

2024-04-19 Thread Nick Rosbrook
On Fri, Apr 19, 2024 at 10:00 AM George Dunlap wrote: > > Go has always interpreted a comment directly before a function as a > docstring, so having the C function prototypes which the golang method > is meant to wrap in the comment before was always a bit non-standard. > However, recent versions

[PATCH v2 2/3] golang/xenlight: Ensure comments aren't interpreted as docstrings

2024-04-19 Thread George Dunlap
Go has always interpreted a comment directly before a function as a docstring, so having the C function prototypes which the golang method is meant to wrap in the comment before was always a bit non-standard. However, recent versions of `go fmt` now attempt to normalize these docstrings as well, le