What's the difference of new function and uninitialized variable? What's the advantage of both?
s := new(string) // *string
var s *string // *string
var s string // string
What's the difference of new function and uninitialized variable? What's the advantage of both?
s := new(string) // *string
var s *string // *string
var s string // string
برچسب:
نویسنده: استخدام کار