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

Function StringToGoComment

pkg/codegen/utils.go:918–920  ·  view source on GitHub ↗

StringToGoComment renders a possible multi-line string as a valid Go-Comment. Each line is prefixed as a comment.

(in string)

Source from the content-addressed store, hash-verified

916// StringToGoComment renders a possible multi-line string as a valid Go-Comment.
917// Each line is prefixed as a comment.
918func StringToGoComment(in string) string {
919 return stringToGoCommentWithPrefix(in, "")
920}
921
922// StringWithTypeNameToGoComment renders a possible multi-line string as a
923// valid Go-Comment, including the name of the type being referenced. Each line

Callers 2

TestStringToGoCommentFunction · 0.85
paramToGoTypeFunction · 0.85

Calls 1

Tested by 1

TestStringToGoCommentFunction · 0.68