MCPcopy Create free account
hub / github.com/CPChain/chain / formatName

Function formatName

api/rpc/utils.go:99–105  ·  view source on GitHub ↗

formatName will convert to first character to lower case

(name string)

Source from the content-addressed store, hash-verified

97
98// formatName will convert to first character to lower case
99func formatName(name string) string {
100 ret := []rune(name)
101 if len(ret) > 0 {
102 ret[0] = unicode.ToLower(ret[0])
103 }
104 return string(ret)
105}
106
107// suitableCallbacks iterates over the methods of the given type. It will determine if a method satisfies the criteria
108// for a RPC callback or a subscription callback and adds it to the collection of callbacks or subscriptions. See server

Callers 2

RegisterNameMethod · 0.85
suitableCallbacksFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected