NewAttributedString creates a new AttributedString from initialString. The string will be entirely unattributed.
(initialString string)
| 363 | // NewAttributedString creates a new AttributedString from |
| 364 | // initialString. The string will be entirely unattributed. |
| 365 | func NewAttributedString(initialString string) *AttributedString { |
| 366 | cs := C.CString(initialString) |
| 367 | defer freestr(cs) |
| 368 | return &AttributedString{ |
| 369 | s: C.uiNewAttributedString(cs), |
| 370 | } |
| 371 | } |
| 372 | |
| 373 | // Free destroys s. |
| 374 | func (s *AttributedString) Free() { |