MCPcopy Index your code
hub / github.com/NdoleStudio/httpsms / pluralize

Method pluralize

api/pkg/handlers/handler.go:108–113  ·  view source on GitHub ↗
(value string, count int)

Source from the content-addressed store, hash-verified

106}
107
108func (h *handler) pluralize(value string, count int) string {
109 if count == 1 {
110 return value
111 }
112 return value + "s"
113}
114
115func (h *handler) userFromContext(c fiber.Ctx) entities.AuthContext {
116 if tokenUser, ok := c.Locals(middlewares.ContextKeyAuthUserID).(entities.AuthContext); ok && !tokenUser.IsNoop() {

Callers 10

IndexMethod · 0.80
IndexMethod · 0.80
IndexMethod · 0.80
IndexMethod · 0.80
indexMethod · 0.80
UsageHistoryMethod · 0.80
IndexMethod · 0.80
SearchMethod · 0.80
IndexMethod · 0.80
IndexMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected