MCPcopy Index your code
hub / github.com/DoNewsCode/core / isValidFormat

Function isValidFormat

helper.go:71–79  ·  view source on GitHub ↗

isValidLevel tests if the given input is valid format config.

(format string)

Source from the content-addressed store, hash-verified

69
70// isValidLevel tests if the given input is valid format config.
71func isValidFormat(format string) bool {
72 validFormat := []string{"json", "logfmt"}
73 for i := range validFormat {
74 if validFormat[i] == format {
75 return true
76 }
77 }
78 return false
79}

Callers 1

provideDefaultConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected