aboutsummaryrefslogtreecommitdiff
path: root/lib/sql/sql.go
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2022-04-25 00:38:04 +0700
committerShulhan <ms@kilabit.info>2022-04-25 00:39:03 +0700
commitc833f34b716b3aeacfca8f92227ff04cad5d04ae (patch)
tree10e5dd4f40cbf0d28273f9191e7861d24acd9ef7 /lib/sql/sql.go
parente5c85cdbfb18cae811679fb6b21090a1218dac4e (diff)
downloadpakakeh.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/sql/sql.go')
0 files changed, 0 insertions, 0 deletions