aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2014-11-15README: Update with instructions on installing & runningHEADmasterTeddy Wing
2014-11-15README: Add clarificationTeddy Wing
Be explicit and say that the program only takes input from STDIN.
2014-11-15Add README & LICENSETeddy Wing
2014-11-15unxhtmlify.go: Print unxhtmlified linesTeddy Wing
Don't print the lines exactly as they come in. Instead run them through `unxhtmlify_string` and then print them out. This gives us the unXHTMLified version of stdin.
2014-11-14Rename `unxhtmlify_line` -> `unxhtmlify_string`Teddy Wing
The word "line" didn't really make sense since the function doesn't care about lines. I started with that naming because it made sense in terms of the implementation, or of the reading of a buffer and unxhtmlifying.
2014-11-14unxhtmlify.go: Use regex replacementTeddy Wing
Use regex to search for the slash bracket of a self-closing tag. Tests pass, wow. Was not expecting that. I think I need to add more test cases.
2014-11-14unxhtmlify_test.go: Add a few more test casesTeddy Wing
2014-11-13unxhtmlify_test.go: Add a couple more test casesTeddy Wing
Expose some failures with more test cases.
2014-11-13unxhtmlify.go: Fill in `unxhtmlify_line`Teddy Wing
Do a string replacement to delete " /" from the input.
2014-11-13Add `unxhtmlify_line` function & basic testTeddy Wing
Create a function stub that will remove the slash from self-closing HTML tags. Add a basic test that for now just tests the <br /> element.
2014-11-13Initial commit. Copy stdin to stdout.Teddy Wing
Copy the code from here: http://golang.org/pkg/bufio/#example_Scanner_lines to read stdin line by line and print it back to stdout.