lint: silence "type HostFileConfig is unused (unused)"

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
This commit is contained in:
Akihiro Suda 2023-02-14 15:06:44 +09:00
parent 4b9fd6ba5f
commit 8bf975b4fa
No known key found for this signature in database
GPG Key ID: 49524C6F9F638F1A

View File

@ -332,6 +332,7 @@ func parseHostsFile(baseDir string, b []byte) ([]hostConfig, error) {
// HACK: we want to keep toml parsing structures private in this package, however go-toml ignores private embedded types. // HACK: we want to keep toml parsing structures private in this package, however go-toml ignores private embedded types.
// so we remap it to a public type within the func body, so technically it's public, but not possible to import elsewhere. // so we remap it to a public type within the func body, so technically it's public, but not possible to import elsewhere.
//nolint:unused
type HostFileConfig = hostFileConfig type HostFileConfig = hostFileConfig
c := struct { c := struct {