From 2f31a04506c6ca085bb33a0b0409d41a39808a67 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Thu, 12 Jan 2023 14:55:16 +0100 Subject: [PATCH] rename linux-only files to _linux, and remove build-tag comments Signed-off-by: Sebastiaan van Stijn --- constants.go => constants_linux.go | 3 --- ipvs.go => ipvs_linux.go | 3 --- ipvs_test.go => ipvs_linux_test.go | 3 --- netlink.go => netlink_linux.go | 3 --- netlink_test.go => netlink_linux_test.go | 3 --- 5 files changed, 15 deletions(-) rename constants.go => constants_linux.go (99%) rename ipvs.go => ipvs_linux.go (99%) rename ipvs_test.go => ipvs_linux_test.go (99%) rename netlink.go => netlink_linux.go (99%) rename netlink_test.go => netlink_linux_test.go (97%) diff --git a/constants.go b/constants_linux.go similarity index 99% rename from constants.go rename to constants_linux.go index 4f17245..0e0561d 100644 --- a/constants.go +++ b/constants_linux.go @@ -1,6 +1,3 @@ -//go:build linux -// +build linux - package ipvs const ( diff --git a/ipvs.go b/ipvs_linux.go similarity index 99% rename from ipvs.go rename to ipvs_linux.go index a1aeaf5..686e746 100644 --- a/ipvs.go +++ b/ipvs_linux.go @@ -1,6 +1,3 @@ -//go:build linux -// +build linux - package ipvs import ( diff --git a/ipvs_test.go b/ipvs_linux_test.go similarity index 99% rename from ipvs_test.go rename to ipvs_linux_test.go index 19728a0..3f9ef99 100644 --- a/ipvs_test.go +++ b/ipvs_linux_test.go @@ -1,6 +1,3 @@ -//go:build linux -// +build linux - package ipvs import ( diff --git a/netlink.go b/netlink_linux.go similarity index 99% rename from netlink.go rename to netlink_linux.go index d5a53d9..711d805 100644 --- a/netlink.go +++ b/netlink_linux.go @@ -1,6 +1,3 @@ -//go:build linux -// +build linux - package ipvs import ( diff --git a/netlink_test.go b/netlink_linux_test.go similarity index 97% rename from netlink_test.go rename to netlink_linux_test.go index 728dde4..0dc3fc3 100644 --- a/netlink_test.go +++ b/netlink_linux_test.go @@ -1,6 +1,3 @@ -//go:build linux -// +build linux - package ipvs import (