A lightweight Go tool for merging multiple blocklist files into a single unique list. It is designed for devices with limited RAM, helping prevent Out of Memory errors during blocklist updates.
-
Merges multiple text-based blocklists (.txt files)
-
Removes duplicate entries
-
Skips comment lines (starting with !) and empty lines
-
Outputs a single file merged.txt containing unique domains or rules
go run main.go file1.txt file2.txt file3.txt-
Read all provided files line by line
-
Filter out empty and comment lines
-
Collect only unique entries
-
Save the result into merged.txt
merged.txt containing all unique non-comment lines from the input files.