Closed bep closed 9 years ago
@bjornerik Thanks! Great work! I don't know why the initial cap size of htmlAttribute
is 2, but it's OK.
About the cap size, I don't know the internals of Go to say definitive, but two seemed like a good default starting cap size for HTML attributes. The growing algorithm of append should be very efficient, but I don't think it hurts to start out 2.
For cleaner code and performance reasons.
See #38