MCPcopy
hub / github.com/keploy/keploy / FileExtension

Method FileExtension

pkg/platform/yaml/codec.go:31–38  ·  view source on GitHub ↗

FileExtension returns the file extension (without dot) for the format.

()

Source from the content-addressed store, hash-verified

29
30// FileExtension returns the file extension (without dot) for the format.
31func (f Format) FileExtension() string {
32 switch f {
33 case FormatJSON:
34 return "json"
35 default:
36 return "yaml"
37 }
38}
39
40// otherFormat returns the other supported format. Used by the *Any helpers
41// to implement "prefer configured format, fall back to the other" so replay

Callers 15

FileExistsFFunction · 0.80
WriteFileFFunction · 0.80
ReadFileFFunction · 0.80
ReadFileAnyFunction · 0.80
CreateFileFFunction · 0.80
ReadSessionIndicesFFunction · 0.80
DeleteFileFFunction · 0.80
TestFileExtensionFunction · 0.80
NewMockReaderFFunction · 0.80
NewMockReaderAnyFunction · 0.80

Calls

no outgoing calls