package octiconssvg_test import ( "io" "log" "os" "github.com/shurcooL/octiconssvg" "golang.org/x/net/html" ) func Example() { var w io.Writer = os.Stdout // Or, e.g., http.ResponseWriter in your HTTP handler, etc. err := html.Render(w, octiconssvg.Alert()) if err != nil { log.Fatalln(err) } // Output: // } func ExampleSetSize() { var w io.Writer = os.Stdout // Or, e.g., http.ResponseWriter in your HTTP handler, etc. err := html.Render(w, octiconssvg.SetSize(octiconssvg.MarkGitHub(), 24)) if err != nil { log.Fatalln(err) } // Output: // }