()
| 573 | } |
| 574 | |
| 575 | func ExampleMinify_options() { |
| 576 | m := minify.New() |
| 577 | m.Add("text/html", &Minifier{ |
| 578 | KeepDefaultAttrVals: true, |
| 579 | KeepWhitespace: true, |
| 580 | }) |
| 581 | |
| 582 | if err := m.Minify("text/html", os.Stdout, os.Stdin); err != nil { |
| 583 | panic(err) |
| 584 | } |
| 585 | } |
| 586 | |
| 587 | func ExampleMinify_reader() { |
| 588 | b := bytes.NewReader([]byte("<html><body><h1>Example</h1></body></html>")) |