MCPcopy Create free account
hub / github.com/chanify/chanify / parsePriority

Function parsePriority

core/utils.go:98–105  ·  view source on GitHub ↗
(priority string)

Source from the content-addressed store, hash-verified

96}
97
98func parsePriority(priority string) int {
99 if len(priority) > 0 {
100 if p, err := strconv.Atoi(priority); err == nil {
101 return p
102 }
103 }
104 return 0
105}
106
107func parseImageContentType(data []byte) string {
108 if len(data) > 12 {

Callers 5

ParseFormMethod · 0.85
parsePriorityFromFormMethod · 0.85
handleSenderMethod · 0.85
handlePostSenderMethod · 0.85
luaContextSendFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected