Skip to main content

base_name

Function base_name 

Source
pub fn base_name(s: &str) -> &str
Expand description

Strip Go method receiver prefix from a symbol name.

Go struct methods are indexed with a receiver prefix: "(*ReceiverType).MethodName" or "ReceiverType.MethodName"

Returns the base name (everything after the last ")."), or the original string if no receiver prefix is present.