2 writes to Value
Aspire.Hosting.CodeGeneration.Go (2)
GoDeclarationScanner.cs (2)
323Value = tag 448Value = literal.Length >= 2 && literal[0] == '"' && literal[^1] == '"' ? literal[1..^1] : literal
8 references to Value
Aspire.Hosting.CodeGeneration.Go (4)
AtsGoCodeGenerator.ApiProjection.cs (4)
901GoDeclarationKind.Field => member with { JsonName = ParseJsonName(declaration.Value) }, 902GoDeclarationKind.Constant => member with { Value = declaration.Value }, 933=> field.Value is null ? field.Signature : $"{field.Signature} `{field.Value}`";
Aspire.Hosting.CodeGeneration.Go.Tests (4)
GoApiExportTests.cs (4)
493Assert.Equal("name,omitempty", declarations[1].Value![(declarations[1].Value!.IndexOf('"') + 1)..declarations[1].Value!.LastIndexOf('"')]); 494Assert.Equal("fast", declarations[4].Value);