MCPcopy
hub / github.com/hwholiday/learning_tools / CheckIsImage

Function CheckIsImage

minio/minio_thumbnail/thumbnail.go:100–108  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

98}
99
100func CheckIsImage(s string) bool {
101 s = strings.ToUpper(s)
102 for _, v := range checkImage {
103 if v == s {
104 return true
105 }
106 }
107 return false
108}

Callers 1

GetFileAndThumbnailFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected