MCPcopy
hub / github.com/keploy/keploy / IsXML

Function IsXML

pkg/util.go:3608–3611  ·  view source on GitHub ↗
(data []byte)

Source from the content-addressed store, hash-verified

3606}
3607
3608func IsXML(data []byte) bool {
3609 var xm xml.Name
3610 return xml.Unmarshal(data, &xm) == nil
3611}
3612
3613// IsCSV checks if data can be parsed as CSV by looking for common characteristics
3614func IsCSV(data []byte) bool {

Callers 1

GuessContentTypeFunction · 0.85

Calls 1

UnmarshalMethod · 0.80

Tested by

no test coverage detected