previx·5 lat temu·discussIf you're asking if macros and attributes are interchangeable terms, no they're not.
previx·5 lat temu·discussAn 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