golang/go

cmd/gc: go:nointerface pragma is undocumented

Open

#33 737 ouverte le 20 août 2019

Voir sur GitHub
 (6 commentaires) (0 réactions) (0 assignés)Go (19 008 forks)batch import
DocumentationNeedsInvestigationhelp wanted

Métriques du dépôt

Stars
 (133 883 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

The Go compiler has a pragma

//go:nointerface

As far as I can tell, it prevents a method from being used to satisfy an interface. However, I cannot find any (public) documentation on it.

Even https://golang.org/src/cmd/compile/internal/gc/lex.go, which has comments for the other pragmas, does not describe this one.

Guide contributeur