new allocates the zero value of a struct. Constructor functions such as strings.NewReplacer are plain Go functions and are usually clearer than filling fields by hand. Keyword arguments to new are not supported, so set fields after construction.
(println(nil?server))
The replacer returns a new string. The field read returns what set! stored.