MCPcopy Index your code
hub / github.com/oapi-codegen/oapi-codegen / IsGoKeyword

Function IsGoKeyword

pkg/codegen/utils.go:707–709  ·  view source on GitHub ↗

IsGoKeyword returns whether the given string is a go keyword

(str string)

Source from the content-addressed store, hash-verified

705
706// IsGoKeyword returns whether the given string is a go keyword
707func IsGoKeyword(str string) bool {
708 return token.IsKeyword(str)
709}
710
711// IsPredeclaredGoIdentifier returns whether the given string
712// is a predefined go identifier.

Callers 3

IsGoIdentityFunction · 0.85
SanitizeGoIdentityFunction · 0.85
GoVariableNameMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected