Commit Graph

22 Commits (4c91c5787547219e13bce8e17bd1d0049e3918e6)

Author SHA1 Message Date
Chris Bednarski 831904824c Change parsing to return errors instead of silently truncating the hosts file; fixes #23 8 years ago
Chris Bednarski 09ada4cfb2 Added some extra trims to remove whitespace mid-line 9 years ago
Chris Bednarski 5df9c0f798 Fixed some bugs with the default windows hosts file 9 years ago
Chris Bednarski c2ccb716b1 Added default path for windows 9 years ago
Chris Bednarski d0930958bf Save will actually write to disk now 9 years ago
Chris Bednarski d840489baa Fix implementation for ls 9 years ago
Chris Bednarski 93d4b5141b Removed an unused function 9 years ago
Chris Bednarski 204c8c8a94 Added a doc comment for GetData 9 years ago
Chris Bednarski c2dc0f5272 Changed format to use byte arrays 9 years ago
Chris Bednarski 60c5e85bc5 Added filter functions
- Filter by IP
- Filter by Domain
- Filter by Domain and IPv4/6
- Also move GetHostsPath to NewHostfile
- Also Removed a bunch of bad tests
9 years ago
Chris Bednarski a689c99cf6 Rearranged hostfile methods so they're declared before they're used, and grouped more logically 9 years ago
Chris Bednarski 746f82d743 Added some comments so golint is happy 9 years ago
Chris Bednarski b41ceb8798 Removed even more unused code 9 years ago
Chris Bednarski 17a11828bb Deleted tons of things; also changed env HOSTESS_FILE to HOSTESS_PATH 9 years ago
Chris Bednarski 870b3f9756 Fixed some makefile issues and a golint thingy 9 years ago
Chris Bednarski ead114987d Changed Ip to IP for more consistent naming 9 years ago
Chris Bednarski f5dea78ac3 Some preliminary work and a lot of commented code 9 years ago
Chris Bednarski 9e82a4a331 Changed interface to NewHostname not to return error
This is more succinct for most uses.
9 years ago
Chris Bednarski ac2093932c Changed ip from string to net.IP and changed hostnames to pointers 9 years ago
Chris Bednarski 896bc7deb0 Moved TrimWS to where it's used 9 years ago
Chris Bednarski b78c4b29ce Changed test to be in hostess_test package and updated tests to use public interface 9 years ago
Chris Bednarski c3b108ea9e Moved contents of lib back to the root 9 years ago