mirror of
https://github.com/goodhosts/hostsfile.git
synced 2026-04-27 15:35:50 +03:00
[PR #11] [MERGED] Added Clean, RemoveDuplicateHosts, SortHosts #24
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hostsfile#24
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/goodhosts/hostsfile/pull/11
Author: @luthermonson
Created: 9/7/2020
Status: ✅ Merged
Merged: 9/7/2020
Merged by: @luthermonson
Base:
master← Head:hosts-per-line-setting📝 Commits (2)
a1a8439vendora1bc9a4added Clean, RemoveDuplicateHosts, SortHosts📊 Changes
7 files changed (+95 additions, -399 deletions)
View changed files
📝
const.go(+5 -2)📝
const_windows.go(+5 -2)📝
go.mod(+1 -5)📝
go.sum(+0 -379)📝
hosts.go(+38 -11)📝
hosts_test.go(+21 -0)📝
hostsline.go(+25 -0)📄 Description
Includes some prep constants for #10 and cleanup will probably be run in the cli after each add/remove so an algo to split hosts on multi-line will work properly.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.