[PR #11] [MERGED] Added Clean, RemoveDuplicateHosts, SortHosts #24

Closed
opened 2026-03-02 05:08:13 +03:00 by kerem · 0 comments
Owner

📋 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: masterHead: hosts-per-line-setting


📝 Commits (2)

📊 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.

## 📋 Pull Request Information **Original PR:** https://github.com/goodhosts/hostsfile/pull/11 **Author:** [@luthermonson](https://github.com/luthermonson) **Created:** 9/7/2020 **Status:** ✅ Merged **Merged:** 9/7/2020 **Merged by:** [@luthermonson](https://github.com/luthermonson) **Base:** `master` ← **Head:** `hosts-per-line-setting` --- ### 📝 Commits (2) - [`a1a8439`](https://github.com/goodhosts/hostsfile/commit/a1a843992a8076155f881310f08db60343491eb2) vendor - [`a1bc9a4`](https://github.com/goodhosts/hostsfile/commit/a1bc9a4ce829d0f4fcc25ba2f2a889519d4c9d87) added Clean, RemoveDuplicateHosts, SortHosts ### 📊 Changes **7 files changed** (+95 additions, -399 deletions) <details> <summary>View changed files</summary> 📝 `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) </details> ### 📄 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-02 05:08:13 +03:00
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hostsfile#24
No description provided.