Hello,

in Go there are no functions on built-in types like int, float, string. 
Let's say I do something like this to have a type mystring that has a 
function ToUpper:

type mystring string

 func (self *mystring) ToUpper() mystring {

                return mystring(strings.ToUpper(string(*self)))

}

I'm new to Go, have little understanding and knowledge about it. So I'd 
like to ask what the cost is in that kind of helper functions and the 
involved conversions on things like memory load, added CPU time, etc. 


Thank you, Haddock

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/golang-nuts/e141f73b-1c37-439f-94f0-b1c52f1ca6a3n%40googlegroups.com.

Reply via email to