areYouLazy / libhosty

A pure golang library to manage /etc/hosts files
Apache License 2.0
16 stars 3 forks source link

Add support for bulk actions #16

Open areYouLazy opened 3 years ago

areYouLazy commented 3 years ago

Is your feature request related to a problem? Please describe.

Bulk action is defined as a query with more parameters of the same type

Describe the solution you'd like

    hostsFile.BulkGetHostsFileLinesByIPs(ip1, ip2, ip3)
    hostsFile.BulkGetHostsFileLinesByAddresses(address1, address2, address3)
    hostsFile.BulkGetHostsFileLinesByHostnames(hostname1, hostname2, hostname3)
areYouLazy commented 3 years ago

Should omit the Bulk word(?)