MCPcopy Index your code
hub / github.com/dgraph-io/dgraph / NormalizeExportFormat

Function NormalizeExportFormat

worker/export.go:1070–1076  ·  view source on GitHub ↗

NormalizeExportFormat returns the normalized string for the export format if it is valid, an empty string otherwise.

(format string)

Source from the content-addressed store, hash-verified

1068// NormalizeExportFormat returns the normalized string for the export format if it is valid, an
1069// empty string otherwise.
1070func NormalizeExportFormat(format string) string {
1071 format = strings.ToLower(format)
1072 if _, ok := exportFormats[format]; ok {
1073 return format
1074 }
1075 return ""
1076}

Callers 1

resolveExportFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected