previx·5 年前·議論An annotation in Rust isn't a macro. The Go equivalent would be a directive in a comment. For example: //go:repr chttps://pkg.go.dev/cmd/compile#hdr-Compiler_Directives