diff options
| author | Shulhan <ms@kilabit.info> | 2022-04-25 00:38:04 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2022-04-25 00:39:03 +0700 |
| commit | c833f34b716b3aeacfca8f92227ff04cad5d04ae (patch) | |
| tree | 10e5dd4f40cbf0d28273f9191e7861d24acd9ef7 /lib/http/callback_error_handler.go | |
| parent | e5c85cdbfb18cae811679fb6b21090a1218dac4e (diff) | |
| download | pakakeh.go-c833f34b716b3aeacfca8f92227ff04cad5d04ae.tar.xz | |
lib/dns: add method to get the record in HostsFile by name and/or value
The Get method return the first resource record that match with domain
name and/or value.
The value parameter is optional, if its empty, then only the first record
that match with domain name that will be returned.
If no record matched, it will return nil.
While at it, reformat the hosts_file comments with next Go 1.19 format.
Diffstat (limited to 'lib/http/callback_error_handler.go')
0 files changed, 0 insertions, 0 deletions
