MCPcopy Create free account
hub / github.com/rilldata/rill / marshalResourceNames

Function marshalResourceNames

admin/database/postgres/postgres.go:4113–4116  ·  view source on GitHub ↗
(resources []database.ResourceName)

Source from the content-addressed store, hash-verified

4111}
4112
4113func marshalResourceNames(resources []database.ResourceName) ([]byte, error) {
4114 resources = dedupeAndSortResourceNames(resources)
4115 return json.Marshal(resources)
4116}
4117
4118// dedupeAndSortResourceNames deduplicates and sorts a slice of ResourceName
4119func dedupeAndSortResourceNames(resources []database.ResourceName) []database.ResourceName {

Calls 1

Tested by

no test coverage detected