MCPcopy Create free account
hub / github.com/pace/bricks / String

Method String

http/middleware/external_dependency.go:102–110  ·  view source on GitHub ↗

String formats all external dependencies. The format is "name:duration[,name:duration]..." and sorted by name.

()

Source from the content-addressed store, hash-verified

100
101// String formats all external dependencies. The format is "name:duration[,name:duration]..." and sorted by name.
102func (c *ExternalDependencyContext) String() string {
103 var b strings.Builder
104
105 for _, key := range slices.Sorted(maps.Keys(c.dependencies)) {
106 b.WriteString(fmt.Sprintf("%s:%d,", key, c.dependencies[key].Milliseconds()))
107 }
108
109 return strings.TrimRight(b.String(), ",")
110}
111
112// Parse a external dependency value
113func (c *ExternalDependencyContext) Parse(s string) {

Callers 15

TestMarshalPayloadFunction · 0.45
ErrorMethod · 0.45
assignValueFunction · 0.45
visitModelNodeFunction · 0.45
buildTypeMethod · 0.45
buildSecurityConfigsMethod · 0.45

Calls

no outgoing calls