32 writes to GoName
Aspire.Hosting.CodeGeneration.Go (10)
AtsGoCodeGenerator.cs (10)
698GoName = ToPascalCase(capability.MethodName), 748GoName = enumName, 765GoName = memberName, 805GoName = dtoName, 832GoName = propertyName, 911GoName = name, 1114GoName = name, 1266GoName = interfaceName, 1353return _docs.Render(new GoDocContent { GoName = goName, Summary = summary }); 2145GoName = fieldName,
Aspire.Hosting.CodeGeneration.Go.Tests (22)
GoDocCommentTests.cs (22)
53("method summary is reworded to start with the name", new GoDocContent { GoName = "AddRedis", Summary = "Adds a Redis container resource." }), 54("summary that already starts with the name is kept", new GoDocContent { GoName = "AddRedis", Summary = "AddRedis adds a Redis container resource." }), 55("getter", new GoDocContent { GoName = "DisplayName", Subject = GoDocSubject.Getter, Summary = "Gets or sets the display name." }), 56("setter", new GoDocContent { GoName = "SetDisplayName", Subject = GoDocSubject.Setter, Summary = "Gets or sets the display name." }), 57("boolean getter", new GoDocContent { GoName = "IsEnabled", Subject = GoDocSubject.Getter, Summary = "Gets or sets a value indicating whether the resource is enabled." }), 58("setter falls back to the description when the property text cannot be reworded", new GoDocContent { GoName = "SetPort", Subject = GoDocSubject.Setter, Summary = "The port.", FallbackSummary = "Sets the Port property" }), 59("field with a noun phrase", new GoDocContent { GoName = "Port", Subject = GoDocSubject.Field, Summary = "The port to listen on." }), 60("field with a sentence", new GoDocContent { GoName = "Pending", Subject = GoDocSubject.Field, Summary = "The resource is pending." }), 61("field with whether", new GoDocContent { GoName = "UseTls", Subject = GoDocSubject.Field, Summary = "Whether TLS is used." }), 62("type without a verb", new GoDocContent { GoName = "Settings", Subject = GoDocSubject.Type, Summary = "Test settings." }), 63("fallback summary", new GoDocContent { GoName = "Settings", Subject = GoDocSubject.Type, FallbackSummary = "Settings represents Settings." }), 64("nothing to document", new GoDocContent { GoName = "Settings", Subject = GoDocSubject.Type }), 67GoName = "WithDocumentation", 74("experimental", new GoDocContent { GoName = "WithPreview", Summary = "Adds a preview.", IsExperimental = true }), 75("obsolete with a message", new GoDocContent { GoName = "WithLegacy", Summary = "Adds the legacy behavior.", IsObsolete = true, ObsoleteMessage = "Use WithPreview instead.\nIt replaces this method." }), 76("obsolete without a message", new GoDocContent { GoName = "WithLegacy", Summary = "Adds the legacy behavior.", IsObsolete = true }), 77("experimental and obsolete", new GoDocContent { GoName = "WithLegacy", Summary = "Adds the legacy behavior.", IsExperimental = true, IsObsolete = true, ObsoleteMessage = "Use WithPreview." }), 80GoName = "WithLongText", 84("a remark that looks like a heading stays a paragraph", new GoDocContent { GoName = "WithHeading", Summary = "Adds a heading.", Remarks = "Overview\n- first item" }), 85("special characters are kept", new GoDocContent { GoName = "WithSpecialCharacters", Summary = "Adds <special> characters & \"quotes\", a backslash \\ and a */ terminator. Unicode: 你好こんにちは." }), 103GoName = "AddFoo", 127GoName = "WithThing",
4 references to GoName
Aspire.Hosting.CodeGeneration.Go (4)
GoDocComment.cs (4)
38/// <summary>The documented summary. May be several sentences; only the first block is reworded to start with <see cref="GoName"/>.</summary> 44/// description such as "Sets the port property." becomes a sentence that starts with <see cref="GoName"/>. 216!TryRewritePropertySummary(content.GoName, property.Text, content.Subject, out _)) 227blocks[0] = new ParagraphBlock(StartWithName(content.GoName, paragraph.Text, content.Subject));