From a1b4c0a29e0becf3a5209af813bb3f0f8feb7259 Mon Sep 17 00:00:00 2001 From: Moses Narrow <36607567+0pcom@users.noreply.github.com> Date: Tue, 25 Oct 2022 15:26:07 -0500 Subject: [PATCH] fix `make format check` errors (#1401) * make format check * fix goimports errors --- cmd/apps/skychat/skychat.go | 1 + cmd/apps/skysocks-client/skysocks-client.go | 1 + cmd/apps/skysocks/skysocks.go | 1 + cmd/setup-node/setup-node.go | 1 + cmd/skywire-cli/commands/config/private.go | 1 + cmd/skywire-cli/commands/config/root.go | 1 + cmd/skywire-cli/commands/config/update.go | 1 + cmd/skywire-cli/commands/dmsgpty/root.go | 1 + cmd/skywire-cli/commands/visor/exec.go | 1 + cmd/skywire-cli/commands/visor/hv.go | 1 + cmd/skywire-cli/commands/visor/info.go | 1 + cmd/skywire-cli/commands/visor/privacy.go | 1 + cmd/skywire-cli/commands/visor/root.go | 1 + cmd/skywire-cli/commands/visor/route.go | 1 + cmd/skywire-cli/commands/visor/shutdown.go | 1 + cmd/skywire-cli/commands/visor/start.go | 1 + cmd/skywire-cli/commands/visor/transports.go | 1 + cmd/skywire-cli/commands/vpn/vvpn.go | 1 + cmd/skywire-systray/skywire-systray.go | 1 + cmd/skywire-visor/commands/root.go | 1 + cmd/skywire-visor/commands/systray.go | 1 + cmd/skywire-visor/skywire-visor.go | 1 + internal/gui/gui.go | 1 + internal/gui/gui_test.go | 1 + internal/httpauth/client_test.go | 1 + internal/httpauth/nonce.go | 1 + internal/packetfilter/address-filter.go | 2 +- internal/packetfilter/kcp-filter.go | 1 + internal/skysocks/common.go | 1 + internal/skysocks/server.go | 1 + internal/skysocks/server_test.go | 1 + internal/vpn/client_config.go | 1 + internal/vpn/client_hello.go | 1 + internal/vpn/const.go | 1 + internal/vpn/env.go | 1 + internal/vpn/errors.go | 1 + internal/vpn/handshake_status.go | 1 + internal/vpn/ip_generator.go | 1 + internal/vpn/net.go | 1 + internal/vpn/os.go | 1 + internal/vpn/server.go | 1 + internal/vpn/server_config.go | 1 + internal/vpn/server_hello.go | 1 + internal/vpn/subnet_ip_incrementer.go | 1 + internal/vpn/tun_device.go | 1 + pkg/app/appcommon/hello.go | 1 + pkg/app/appcommon/log_store.go | 1 + pkg/app/appcommon/log_store_test.go | 1 + pkg/app/appcommon/proc_config.go | 1 + pkg/app/appdisc/factory.go | 1 + pkg/app/appevent/broadcaster_test.go | 1 + pkg/app/appevent/event.go | 1 + pkg/app/appevent/handshake.go | 1 + pkg/app/appevent/rpc.go | 1 + pkg/app/appevent/subscriber.go | 1 + pkg/app/appevent/types.go | 1 + pkg/app/appevent/utils.go | 1 + pkg/app/appnet/addr.go | 1 + pkg/app/appnet/addr_test.go | 1 + pkg/app/appnet/dmsg_networker.go | 1 + pkg/app/appnet/errors.go | 1 + pkg/app/appnet/networker.go | 1 + pkg/app/appnet/networker_test.go | 1 + pkg/app/appnet/skywire_conn.go | 1 + pkg/app/appnet/skywire_networker.go | 1 + pkg/app/appnet/type.go | 1 + pkg/app/appnet/type_test.go | 1 + pkg/app/appnet/wrapped_conn.go | 1 + pkg/app/appserver/app_state.go | 1 + pkg/app/appserver/app_stats.go | 1 + pkg/app/appserver/errors.go | 1 + pkg/app/appserver/proc.go | 1 + pkg/app/appserver/proc_manager.go | 1 + pkg/app/appserver/proc_manager_test.go | 1 + pkg/app/appserver/proc_test.go | 1 + pkg/app/appserver/rpc_ingress_client.go | 1 + pkg/app/appserver/rpc_ingress_client_test.go | 1 + pkg/app/appserver/rpc_ingress_gateway.go | 1 + pkg/app/appserver/rpc_ingress_gateway_test.go | 1 + pkg/app/appserver/stderr.go | 1 + pkg/app/client.go | 1 + pkg/app/client_test.go | 1 + pkg/app/conn.go | 1 + pkg/app/conn_test.go | 1 + pkg/app/idmanager/manager.go | 1 + pkg/app/idmanager/manager_test.go | 1 + pkg/app/idmanager/util.go | 1 + pkg/app/idmanager/util_test.go | 1 + pkg/app/listener.go | 1 + pkg/app/listener_test.go | 1 + pkg/router/network_stats.go | 1 + pkg/router/noise_route_group.go | 1 + pkg/router/route_group.go | 1 + pkg/router/route_group_test.go | 1 + pkg/router/router_test.go | 1 + pkg/router/routerclient/client_test.go | 1 + pkg/router/routerclient/dmsg_wrapper.go | 1 + pkg/router/routerclient/map.go | 1 + pkg/router/routerclient/map_test.go | 1 + pkg/router/rpc_gateway.go | 1 + pkg/router/rpc_gateway_test.go | 1 + pkg/routing/addr.go | 1 + pkg/routing/failure.go | 1 + pkg/routing/packet.go | 1 + pkg/routing/packet_test.go | 1 + pkg/routing/route_descriptor.go | 1 + pkg/routing/route_descriptor_test.go | 1 + pkg/routing/rule.go | 1 + pkg/routing/rule_test.go | 1 + pkg/routing/table.go | 1 + pkg/routing/table_test.go | 1 + pkg/servicedisc/client.go | 1 + pkg/servicedisc/error.go | 1 + pkg/servicedisc/query.go | 1 + pkg/servicedisc/types.go | 1 + pkg/servicedisc/types_test.go | 1 + pkg/setup/id_reserver.go | 1 + pkg/setup/id_reserver_test.go | 1 + pkg/setup/node.go | 1 + pkg/setup/node_test.go | 1 + pkg/setup/rpc_gateway.go | 1 + pkg/setup/rules_map.go | 1 + pkg/setup/setupclient/wrappers.go | 1 + pkg/setup/setupmetrics/victoria_metrics.go | 1 + pkg/setup/testing_test.go | 1 + pkg/transport/deprecated/deprecated.go | 2 +- pkg/transport/discovery.go | 1 + pkg/transport/discovery_test.go | 1 + pkg/transport/entry.go | 1 + pkg/transport/entry_test.go | 1 + pkg/transport/errors.go | 1 + pkg/transport/handshake.go | 1 + pkg/transport/log.go | 1 + pkg/transport/log_test.go | 1 + pkg/transport/managed_transport.go | 1 + pkg/transport/manager.go | 1 + pkg/transport/manager_test.go | 1 + pkg/transport/network/addrresolver/client_test.go | 1 + pkg/transport/network/connection.go | 1 + pkg/transport/network/dmsg.go | 1 + pkg/transport/network/handshake/handshake_test.go | 1 + pkg/transport/network/listener.go | 1 + pkg/transport/network/network.go | 1 + pkg/transport/network/stcp.go | 1 + pkg/transport/network/stcpr.go | 1 + pkg/transport/network/stun_client.go | 1 + pkg/transport/network/sudph.go | 1 + pkg/transport/setup/visor.go | 1 + pkg/transport/tpdclient/client_test.go | 1 + pkg/utclient/client_test.go | 1 + pkg/util/osutil/osutil.go | 1 + pkg/util/osutil/run.go | 1 + pkg/util/pathutil/homedir.go | 1 + pkg/util/pathutil/util.go | 1 + pkg/visor/api.go | 1 + pkg/visor/dmsgtracker/dmsg_tracker_test.go | 1 + pkg/visor/hypervisor.go | 1 + pkg/visor/hypervisor_test.go | 1 + pkg/visor/init.go | 1 + pkg/visor/remote_hypervisor.go | 1 + pkg/visor/rpc.go | 1 + pkg/visor/rpc_client.go | 1 + pkg/visor/rpc_client_serve.go | 1 + pkg/visor/rpc_test.go | 1 + pkg/visor/usermanager/user_manager.go | 1 + pkg/visor/usermanager/user_test.go | 1 + pkg/visor/visorconfig/common_test.go | 1 + pkg/visor/visorconfig/config.go | 1 + pkg/visor/visorconfig/parse.go | 1 + pkg/visor/visorconfig/read.go | 1 + pkg/visor/visorconfig/services.go | 1 + pkg/visor/visorconfig/types.go | 1 + pkg/visor/visorconfig/v1.go | 1 + pkg/visor/visorconfig/v1_test.go | 1 + skywire.go | 6 ++++-- 175 files changed, 178 insertions(+), 4 deletions(-) diff --git a/cmd/apps/skychat/skychat.go b/cmd/apps/skychat/skychat.go index ad2101d973..acd8af19a9 100644 --- a/cmd/apps/skychat/skychat.go +++ b/cmd/apps/skychat/skychat.go @@ -1,3 +1,4 @@ +// /* cmd/apps/skychat/skychat.go /* skychat app for skywire visor */ diff --git a/cmd/apps/skysocks-client/skysocks-client.go b/cmd/apps/skysocks-client/skysocks-client.go index 55a7f048e0..0e4b038e2d 100644 --- a/cmd/apps/skysocks-client/skysocks-client.go +++ b/cmd/apps/skysocks-client/skysocks-client.go @@ -1,3 +1,4 @@ +// /* cmd/apps/skysocks-client/skysocks-client.go /* proxy client app for skywire visor */ diff --git a/cmd/apps/skysocks/skysocks.go b/cmd/apps/skysocks/skysocks.go index 824215ab8e..9feea76ac5 100644 --- a/cmd/apps/skysocks/skysocks.go +++ b/cmd/apps/skysocks/skysocks.go @@ -1,3 +1,4 @@ +// /* cmd/apps/skysocks/skysocks.go /* proxy server app for skywire visor */ diff --git a/cmd/setup-node/setup-node.go b/cmd/setup-node/setup-node.go index ef5018242d..befbef0ff1 100644 --- a/cmd/setup-node/setup-node.go +++ b/cmd/setup-node/setup-node.go @@ -1,3 +1,4 @@ +// /*Package main setup-node*/ cmd/setup-node/setup-node.go /*Package main setup-node*/ package main diff --git a/cmd/skywire-cli/commands/config/private.go b/cmd/skywire-cli/commands/config/private.go index 6a3b58c154..b1351b4ef6 100644 --- a/cmd/skywire-cli/commands/config/private.go +++ b/cmd/skywire-cli/commands/config/private.go @@ -1,3 +1,4 @@ +// Package cliconfig cmd/skywire-cli/commands/config/private.go package cliconfig import ( diff --git a/cmd/skywire-cli/commands/config/root.go b/cmd/skywire-cli/commands/config/root.go index e67c77d843..272c88bbe9 100644 --- a/cmd/skywire-cli/commands/config/root.go +++ b/cmd/skywire-cli/commands/config/root.go @@ -1,3 +1,4 @@ +// Package cliconfig cmd/skywire-cli/commands/config/root.go package cliconfig import ( diff --git a/cmd/skywire-cli/commands/config/update.go b/cmd/skywire-cli/commands/config/update.go index 569498adb0..b6f2184d95 100644 --- a/cmd/skywire-cli/commands/config/update.go +++ b/cmd/skywire-cli/commands/config/update.go @@ -1,3 +1,4 @@ +// Package cliconfig cmd/skywire-cli/commands/config/update.go package cliconfig import ( diff --git a/cmd/skywire-cli/commands/dmsgpty/root.go b/cmd/skywire-cli/commands/dmsgpty/root.go index 494e26aeac..4adf269a65 100644 --- a/cmd/skywire-cli/commands/dmsgpty/root.go +++ b/cmd/skywire-cli/commands/dmsgpty/root.go @@ -1,3 +1,4 @@ +// Package clidmsgpty cmd/skywire-cli/commands/dmsgpty/root.go package clidmsgpty import ( diff --git a/cmd/skywire-cli/commands/visor/exec.go b/cmd/skywire-cli/commands/visor/exec.go index bad8826b2f..d8cf938227 100644 --- a/cmd/skywire-cli/commands/visor/exec.go +++ b/cmd/skywire-cli/commands/visor/exec.go @@ -1,3 +1,4 @@ +// Package clivisor cmd/skywire-cli/commands/visor/exec.go package clivisor import ( diff --git a/cmd/skywire-cli/commands/visor/hv.go b/cmd/skywire-cli/commands/visor/hv.go index 3cee518f68..69282fcc85 100644 --- a/cmd/skywire-cli/commands/visor/hv.go +++ b/cmd/skywire-cli/commands/visor/hv.go @@ -1,3 +1,4 @@ +// Package clivisor cmd/skywire-cli/commands/visor/hv.go package clivisor import ( diff --git a/cmd/skywire-cli/commands/visor/info.go b/cmd/skywire-cli/commands/visor/info.go index 0fd5a3cc1a..12c622f0bb 100644 --- a/cmd/skywire-cli/commands/visor/info.go +++ b/cmd/skywire-cli/commands/visor/info.go @@ -1,3 +1,4 @@ +// Package clivisor cmd/skywire-cli/commands/visor/info.go package clivisor import ( diff --git a/cmd/skywire-cli/commands/visor/privacy.go b/cmd/skywire-cli/commands/visor/privacy.go index 8fdfb3dca2..6c1cd21271 100644 --- a/cmd/skywire-cli/commands/visor/privacy.go +++ b/cmd/skywire-cli/commands/visor/privacy.go @@ -1,3 +1,4 @@ +// Package clivisor cmd/skywire-cli/commands/visor/privacy.go package clivisor import ( diff --git a/cmd/skywire-cli/commands/visor/root.go b/cmd/skywire-cli/commands/visor/root.go index db691d7d63..23f060b111 100644 --- a/cmd/skywire-cli/commands/visor/root.go +++ b/cmd/skywire-cli/commands/visor/root.go @@ -1,3 +1,4 @@ +// Package clivisor cmd/skywire-cli/commands/visor/root.go package clivisor import ( diff --git a/cmd/skywire-cli/commands/visor/route.go b/cmd/skywire-cli/commands/visor/route.go index 7abe47c122..6cadff2c6e 100644 --- a/cmd/skywire-cli/commands/visor/route.go +++ b/cmd/skywire-cli/commands/visor/route.go @@ -1,3 +1,4 @@ +// Package clivisor cmd/skywire-cli/commands/visor/route.go package clivisor import ( diff --git a/cmd/skywire-cli/commands/visor/shutdown.go b/cmd/skywire-cli/commands/visor/shutdown.go index 88cb7d9d54..403cc64fc8 100644 --- a/cmd/skywire-cli/commands/visor/shutdown.go +++ b/cmd/skywire-cli/commands/visor/shutdown.go @@ -1,3 +1,4 @@ +// Package clivisor cmd/skywire-cli/commands/visor/shutdown.go package clivisor import ( diff --git a/cmd/skywire-cli/commands/visor/start.go b/cmd/skywire-cli/commands/visor/start.go index 0945b1a344..db4f4db8fd 100644 --- a/cmd/skywire-cli/commands/visor/start.go +++ b/cmd/skywire-cli/commands/visor/start.go @@ -1,3 +1,4 @@ +// Package clivisor cmd/skywire-cli/commands/visor/start.go package clivisor import ( diff --git a/cmd/skywire-cli/commands/visor/transports.go b/cmd/skywire-cli/commands/visor/transports.go index 9ac8c6eecf..233e17494f 100644 --- a/cmd/skywire-cli/commands/visor/transports.go +++ b/cmd/skywire-cli/commands/visor/transports.go @@ -1,3 +1,4 @@ +// Package clivisor cmd/skywire-cli/commands/visor/transports.go package clivisor import ( diff --git a/cmd/skywire-cli/commands/vpn/vvpn.go b/cmd/skywire-cli/commands/vpn/vvpn.go index 54db29dd42..0b9a45f244 100644 --- a/cmd/skywire-cli/commands/vpn/vvpn.go +++ b/cmd/skywire-cli/commands/vpn/vvpn.go @@ -1,3 +1,4 @@ +// Package clivpn cmd/skywire-cli/commands/vpn/vvpn.go package clivpn import ( diff --git a/cmd/skywire-systray/skywire-systray.go b/cmd/skywire-systray/skywire-systray.go index 1f73652912..cc9bab1bcb 100644 --- a/cmd/skywire-systray/skywire-systray.go +++ b/cmd/skywire-systray/skywire-systray.go @@ -1,3 +1,4 @@ +// /* cmd/skywire-systray/skywire-systray.go /* skywire systray */ diff --git a/cmd/skywire-visor/commands/root.go b/cmd/skywire-visor/commands/root.go index 8010009e6a..5c501a5c7c 100644 --- a/cmd/skywire-visor/commands/root.go +++ b/cmd/skywire-visor/commands/root.go @@ -1,3 +1,4 @@ +// Package commands cmd/skywire-visor/commands/root.go package commands import ( diff --git a/cmd/skywire-visor/commands/systray.go b/cmd/skywire-visor/commands/systray.go index d89b7599ff..6b07d6527f 100644 --- a/cmd/skywire-visor/commands/systray.go +++ b/cmd/skywire-visor/commands/systray.go @@ -1,3 +1,4 @@ +// Package commands cmd/skywire-visor/commands/systray.go package commands import ( diff --git a/cmd/skywire-visor/skywire-visor.go b/cmd/skywire-visor/skywire-visor.go index 8422dfa7db..45923c885d 100644 --- a/cmd/skywire-visor/skywire-visor.go +++ b/cmd/skywire-visor/skywire-visor.go @@ -1,3 +1,4 @@ +// /* cmd/skywire-visor/skywire-visor.go /* skywire visor */ diff --git a/internal/gui/gui.go b/internal/gui/gui.go index 258fc6af15..34cb31eafb 100644 --- a/internal/gui/gui.go +++ b/internal/gui/gui.go @@ -1,3 +1,4 @@ +// Package gui internal/gui/gui.go package gui import ( diff --git a/internal/gui/gui_test.go b/internal/gui/gui_test.go index 894a3163e0..7ae9317a45 100644 --- a/internal/gui/gui_test.go +++ b/internal/gui/gui_test.go @@ -1,3 +1,4 @@ +// Package gui internal/gui/gui_test.go package gui import ( diff --git a/internal/httpauth/client_test.go b/internal/httpauth/client_test.go index 9c4375e344..352793e7ee 100644 --- a/internal/httpauth/client_test.go +++ b/internal/httpauth/client_test.go @@ -1,3 +1,4 @@ +// Package httpauth internal/httpauth/client_test.go package httpauth import ( diff --git a/internal/httpauth/nonce.go b/internal/httpauth/nonce.go index 7ca6264e33..30813d055a 100644 --- a/internal/httpauth/nonce.go +++ b/internal/httpauth/nonce.go @@ -1,3 +1,4 @@ +// Package httpauth internal/httpauth/nonce.go package httpauth import ( diff --git a/internal/packetfilter/address-filter.go b/internal/packetfilter/address-filter.go index 4d6cdb9983..726e7f0adc 100644 --- a/internal/packetfilter/address-filter.go +++ b/internal/packetfilter/address-filter.go @@ -1,4 +1,4 @@ -/*Package packetfilter filter packets*/ +// Package packetfilter internal/packetfilter/address-filter.go package packetfilter import ( diff --git a/internal/packetfilter/kcp-filter.go b/internal/packetfilter/kcp-filter.go index 88c2f94482..634dc7ff47 100644 --- a/internal/packetfilter/kcp-filter.go +++ b/internal/packetfilter/kcp-filter.go @@ -1,3 +1,4 @@ +// Package packetfilter internal/packetfilter/kcp-filter.go package packetfilter import ( diff --git a/internal/skysocks/common.go b/internal/skysocks/common.go index f8fe17e46e..3d70aa8b65 100644 --- a/internal/skysocks/common.go +++ b/internal/skysocks/common.go @@ -1,3 +1,4 @@ +// Package skysocks internal/skysocks/common.go package skysocks import ( diff --git a/internal/skysocks/server.go b/internal/skysocks/server.go index 723e324798..1f23e3c98c 100644 --- a/internal/skysocks/server.go +++ b/internal/skysocks/server.go @@ -1,3 +1,4 @@ +// Package skysocks internal/skysocks/server.go package skysocks import ( diff --git a/internal/skysocks/server_test.go b/internal/skysocks/server_test.go index 69f6d76e65..809a8175ff 100644 --- a/internal/skysocks/server_test.go +++ b/internal/skysocks/server_test.go @@ -1,3 +1,4 @@ +// Package skysocks internal/skysocks/server_test.go package skysocks import ( diff --git a/internal/vpn/client_config.go b/internal/vpn/client_config.go index 82eec924d8..c83f73ef14 100644 --- a/internal/vpn/client_config.go +++ b/internal/vpn/client_config.go @@ -1,3 +1,4 @@ +// Package vpn internal/vpn/client_config.go package vpn import "github.com/skycoin/skywire-utilities/pkg/cipher" diff --git a/internal/vpn/client_hello.go b/internal/vpn/client_hello.go index 67aeb54789..4cfaa67749 100644 --- a/internal/vpn/client_hello.go +++ b/internal/vpn/client_hello.go @@ -1,3 +1,4 @@ +// Package vpn internal/vpn/client_hello.go package vpn import "net" diff --git a/internal/vpn/const.go b/internal/vpn/const.go index df0dc73b38..157f81258d 100644 --- a/internal/vpn/const.go +++ b/internal/vpn/const.go @@ -1,3 +1,4 @@ +// Package vpn internal/vpn/const.go package vpn const ( diff --git a/internal/vpn/env.go b/internal/vpn/env.go index 560e0cc25f..6b93893225 100644 --- a/internal/vpn/env.go +++ b/internal/vpn/env.go @@ -1,3 +1,4 @@ +// Package vpn internal/vpn/env.go package vpn import ( diff --git a/internal/vpn/errors.go b/internal/vpn/errors.go index 4e18bd5120..959da9254e 100644 --- a/internal/vpn/errors.go +++ b/internal/vpn/errors.go @@ -1,3 +1,4 @@ +// Package vpn internal/vpn/errors.go package vpn import ( diff --git a/internal/vpn/handshake_status.go b/internal/vpn/handshake_status.go index ec44ab2c2b..16744ef154 100644 --- a/internal/vpn/handshake_status.go +++ b/internal/vpn/handshake_status.go @@ -1,3 +1,4 @@ +// Package vpn internal/vpn/handshake_status.go package vpn import "errors" diff --git a/internal/vpn/ip_generator.go b/internal/vpn/ip_generator.go index 10795c22b3..1ca1be697c 100644 --- a/internal/vpn/ip_generator.go +++ b/internal/vpn/ip_generator.go @@ -1,3 +1,4 @@ +// Package vpn internal/vpn/ip_generator.go package vpn import ( diff --git a/internal/vpn/net.go b/internal/vpn/net.go index 476ecbb1f0..b4ba150104 100644 --- a/internal/vpn/net.go +++ b/internal/vpn/net.go @@ -1,3 +1,4 @@ +// Package vpn internal/vpn/net.go package vpn import ( diff --git a/internal/vpn/os.go b/internal/vpn/os.go index 03f788c1b2..7dbdab44df 100644 --- a/internal/vpn/os.go +++ b/internal/vpn/os.go @@ -1,3 +1,4 @@ +// Package vpn internal/vpn/os.go package vpn import ( diff --git a/internal/vpn/server.go b/internal/vpn/server.go index d2047a9ee4..da38c98185 100644 --- a/internal/vpn/server.go +++ b/internal/vpn/server.go @@ -1,3 +1,4 @@ +// Package vpn internal/vpn/server.go package vpn import ( diff --git a/internal/vpn/server_config.go b/internal/vpn/server_config.go index d855549107..6cae647620 100644 --- a/internal/vpn/server_config.go +++ b/internal/vpn/server_config.go @@ -1,3 +1,4 @@ +// Package vpn internal/vpn/server_config.go package vpn // ServerConfig is a configuration for VPN server. diff --git a/internal/vpn/server_hello.go b/internal/vpn/server_hello.go index 08a57db779..1e35fa0d28 100644 --- a/internal/vpn/server_hello.go +++ b/internal/vpn/server_hello.go @@ -1,3 +1,4 @@ +// Package vpn internal/vpn/server_hello.go package vpn import "net" diff --git a/internal/vpn/subnet_ip_incrementer.go b/internal/vpn/subnet_ip_incrementer.go index e5ad644129..f686a3ee13 100644 --- a/internal/vpn/subnet_ip_incrementer.go +++ b/internal/vpn/subnet_ip_incrementer.go @@ -1,3 +1,4 @@ +// Package vpn internal/vpn/subnet_ip_incrementer.go package vpn import ( diff --git a/internal/vpn/tun_device.go b/internal/vpn/tun_device.go index 980aaeae9c..89c6535f71 100644 --- a/internal/vpn/tun_device.go +++ b/internal/vpn/tun_device.go @@ -1,3 +1,4 @@ +// Package vpn internal/vpn/tun_device.go package vpn import "io" diff --git a/pkg/app/appcommon/hello.go b/pkg/app/appcommon/hello.go index 59775c1da1..807d73ecf1 100644 --- a/pkg/app/appcommon/hello.go +++ b/pkg/app/appcommon/hello.go @@ -1,3 +1,4 @@ +// Package appcommon pkg/app/appcommon/hello.go package appcommon import ( diff --git a/pkg/app/appcommon/log_store.go b/pkg/app/appcommon/log_store.go index 39c33523d1..8b7f8af8df 100644 --- a/pkg/app/appcommon/log_store.go +++ b/pkg/app/appcommon/log_store.go @@ -1,3 +1,4 @@ +// Package appcommon pkg/app/appcommon/log_store.go package appcommon import ( diff --git a/pkg/app/appcommon/log_store_test.go b/pkg/app/appcommon/log_store_test.go index 29146d2fb9..54442c5cb8 100644 --- a/pkg/app/appcommon/log_store_test.go +++ b/pkg/app/appcommon/log_store_test.go @@ -1,3 +1,4 @@ +// Package appcommon pkg/app/appcommon/log_store_test.go package appcommon import ( diff --git a/pkg/app/appcommon/proc_config.go b/pkg/app/appcommon/proc_config.go index b6777753d1..23cdb0014c 100644 --- a/pkg/app/appcommon/proc_config.go +++ b/pkg/app/appcommon/proc_config.go @@ -1,3 +1,4 @@ +// Package appcommon pkg/app/appcommon/proc_config.go package appcommon import ( diff --git a/pkg/app/appdisc/factory.go b/pkg/app/appdisc/factory.go index 429c917b1e..9ac8548f3a 100644 --- a/pkg/app/appdisc/factory.go +++ b/pkg/app/appdisc/factory.go @@ -1,3 +1,4 @@ +// Package appdisc pkg/app/appdisc/factory.go package appdisc import ( diff --git a/pkg/app/appevent/broadcaster_test.go b/pkg/app/appevent/broadcaster_test.go index a9bdb674c6..b9111a3bee 100644 --- a/pkg/app/appevent/broadcaster_test.go +++ b/pkg/app/appevent/broadcaster_test.go @@ -1,3 +1,4 @@ +// Package appevent pkg/app/appevent/broadcaster_test.go package appevent import ( diff --git a/pkg/app/appevent/event.go b/pkg/app/appevent/event.go index b67d9ef426..d8a5918b52 100644 --- a/pkg/app/appevent/event.go +++ b/pkg/app/appevent/event.go @@ -1,3 +1,4 @@ +// Package appevent pkg/app/appevent/event.go package appevent import ( diff --git a/pkg/app/appevent/handshake.go b/pkg/app/appevent/handshake.go index cc792f8ca1..00c310ddba 100644 --- a/pkg/app/appevent/handshake.go +++ b/pkg/app/appevent/handshake.go @@ -1,3 +1,4 @@ +// Package appevent pkg/app/appevent/handshake.go package appevent import ( diff --git a/pkg/app/appevent/rpc.go b/pkg/app/appevent/rpc.go index 59cf366e75..4d5e03b346 100644 --- a/pkg/app/appevent/rpc.go +++ b/pkg/app/appevent/rpc.go @@ -1,3 +1,4 @@ +// Package appevent pkg/app/appevent/rpc.go package appevent import ( diff --git a/pkg/app/appevent/subscriber.go b/pkg/app/appevent/subscriber.go index 5fe816e7d9..c2170dd7bd 100644 --- a/pkg/app/appevent/subscriber.go +++ b/pkg/app/appevent/subscriber.go @@ -1,3 +1,4 @@ +// Package appevent pkg/app/appevent/subscriber.go package appevent import ( diff --git a/pkg/app/appevent/types.go b/pkg/app/appevent/types.go index 4bc8f89988..6349270503 100644 --- a/pkg/app/appevent/types.go +++ b/pkg/app/appevent/types.go @@ -1,3 +1,4 @@ +// Package appevent pkg/app/appevent/types.go package appevent // AllTypes returns all event types. diff --git a/pkg/app/appevent/utils.go b/pkg/app/appevent/utils.go index 0646274004..864f58fb8b 100644 --- a/pkg/app/appevent/utils.go +++ b/pkg/app/appevent/utils.go @@ -1,3 +1,4 @@ +// Package appevent pkg/app/appevent/utils.go package appevent import "context" diff --git a/pkg/app/appnet/addr.go b/pkg/app/appnet/addr.go index 62cca80148..37d512bcf9 100644 --- a/pkg/app/appnet/addr.go +++ b/pkg/app/appnet/addr.go @@ -1,3 +1,4 @@ +// Package appnet pkg/app/appnet/addr.go package appnet import ( diff --git a/pkg/app/appnet/addr_test.go b/pkg/app/appnet/addr_test.go index 95b4b57929..02b8829ba4 100644 --- a/pkg/app/appnet/addr_test.go +++ b/pkg/app/appnet/addr_test.go @@ -1,3 +1,4 @@ +// Package appnet pkg/app/appnet/addr_test.go package appnet import ( diff --git a/pkg/app/appnet/dmsg_networker.go b/pkg/app/appnet/dmsg_networker.go index 140890233d..792d2b50c6 100644 --- a/pkg/app/appnet/dmsg_networker.go +++ b/pkg/app/appnet/dmsg_networker.go @@ -1,3 +1,4 @@ +// Package appnet pkg/app/appnet/dmsg_networker.go package appnet import ( diff --git a/pkg/app/appnet/errors.go b/pkg/app/appnet/errors.go index a5be58de02..ba3ea40d6e 100644 --- a/pkg/app/appnet/errors.go +++ b/pkg/app/appnet/errors.go @@ -1,3 +1,4 @@ +// Package appnet pkg/app/appnet/errors.go package appnet import ( diff --git a/pkg/app/appnet/networker.go b/pkg/app/appnet/networker.go index ed9617809d..19267ce909 100644 --- a/pkg/app/appnet/networker.go +++ b/pkg/app/appnet/networker.go @@ -1,3 +1,4 @@ +// Package appnet pkg/app/appnet/networker.go package appnet import ( diff --git a/pkg/app/appnet/networker_test.go b/pkg/app/appnet/networker_test.go index 0b7f6f692c..4b9e21a5ec 100644 --- a/pkg/app/appnet/networker_test.go +++ b/pkg/app/appnet/networker_test.go @@ -1,3 +1,4 @@ +// Package appnet pkg/app/appnet/networker_test.go package appnet import ( diff --git a/pkg/app/appnet/skywire_conn.go b/pkg/app/appnet/skywire_conn.go index a75a70c747..996a725b8a 100644 --- a/pkg/app/appnet/skywire_conn.go +++ b/pkg/app/appnet/skywire_conn.go @@ -1,3 +1,4 @@ +// Package appnet pkg/app/appnet/skywire_conn.go package appnet import ( diff --git a/pkg/app/appnet/skywire_networker.go b/pkg/app/appnet/skywire_networker.go index e378217b59..dd609dfad9 100644 --- a/pkg/app/appnet/skywire_networker.go +++ b/pkg/app/appnet/skywire_networker.go @@ -1,3 +1,4 @@ +// Package appnet pkg/app/appnet/skywire_networker.go package appnet import ( diff --git a/pkg/app/appnet/type.go b/pkg/app/appnet/type.go index 789888c148..ab1f18e29a 100644 --- a/pkg/app/appnet/type.go +++ b/pkg/app/appnet/type.go @@ -1,3 +1,4 @@ +// Package appnet pkg/app/appnet/type.go package appnet // Type represents the network type. diff --git a/pkg/app/appnet/type_test.go b/pkg/app/appnet/type_test.go index c27b7bdaa4..96f7940594 100644 --- a/pkg/app/appnet/type_test.go +++ b/pkg/app/appnet/type_test.go @@ -1,3 +1,4 @@ +// Package appnet pkg/app/appnet/type_test.go package appnet import ( diff --git a/pkg/app/appnet/wrapped_conn.go b/pkg/app/appnet/wrapped_conn.go index 4ca2eababc..1502a4a3b1 100644 --- a/pkg/app/appnet/wrapped_conn.go +++ b/pkg/app/appnet/wrapped_conn.go @@ -1,3 +1,4 @@ +// Package appnet pkg/app/appnet/wrapped_conn.go package appnet import ( diff --git a/pkg/app/appserver/app_state.go b/pkg/app/appserver/app_state.go index 632fdfe923..4f5622a2c1 100644 --- a/pkg/app/appserver/app_state.go +++ b/pkg/app/appserver/app_state.go @@ -1,3 +1,4 @@ +// Package appserver pkg/app/appserver/app_state.go package appserver import "github.com/skycoin/skywire/pkg/routing" diff --git a/pkg/app/appserver/app_stats.go b/pkg/app/appserver/app_stats.go index 2a454555fb..d49bcd8193 100644 --- a/pkg/app/appserver/app_stats.go +++ b/pkg/app/appserver/app_stats.go @@ -1,3 +1,4 @@ +// Package appserver pkg/app/appserver/app_stats.go package appserver import ( diff --git a/pkg/app/appserver/errors.go b/pkg/app/appserver/errors.go index b44af5af61..ad220e0da7 100644 --- a/pkg/app/appserver/errors.go +++ b/pkg/app/appserver/errors.go @@ -1,3 +1,4 @@ +// Package appserver pkg/app/appserver/errors.go package appserver // netErr implements `net.Error` to properly diff --git a/pkg/app/appserver/proc.go b/pkg/app/appserver/proc.go index c85ef4d4bb..3f10d673d0 100644 --- a/pkg/app/appserver/proc.go +++ b/pkg/app/appserver/proc.go @@ -1,3 +1,4 @@ +// Package appserver pkg/app/appserver/proc.go package appserver import ( diff --git a/pkg/app/appserver/proc_manager.go b/pkg/app/appserver/proc_manager.go index 790381d3d8..3b3257e42e 100644 --- a/pkg/app/appserver/proc_manager.go +++ b/pkg/app/appserver/proc_manager.go @@ -1,3 +1,4 @@ +// Package appserver pkg/app/appserver/proc_manager.go package appserver import ( diff --git a/pkg/app/appserver/proc_manager_test.go b/pkg/app/appserver/proc_manager_test.go index 7bd1a0592c..b972c69875 100644 --- a/pkg/app/appserver/proc_manager_test.go +++ b/pkg/app/appserver/proc_manager_test.go @@ -1,3 +1,4 @@ +// Package appserver pkg/app/appserver/proc_manager_test.go package appserver import ( diff --git a/pkg/app/appserver/proc_test.go b/pkg/app/appserver/proc_test.go index b889db73c0..f9582260f8 100644 --- a/pkg/app/appserver/proc_test.go +++ b/pkg/app/appserver/proc_test.go @@ -1,3 +1,4 @@ +// Package appserver pkg/app/appserver/proc_test.go package appserver import ( diff --git a/pkg/app/appserver/rpc_ingress_client.go b/pkg/app/appserver/rpc_ingress_client.go index f0ef354b5b..0589efb714 100644 --- a/pkg/app/appserver/rpc_ingress_client.go +++ b/pkg/app/appserver/rpc_ingress_client.go @@ -1,3 +1,4 @@ +// Package appserver pkg/app/appserver/rpc_ingress_client.go package appserver import ( diff --git a/pkg/app/appserver/rpc_ingress_client_test.go b/pkg/app/appserver/rpc_ingress_client_test.go index 60f2f0d974..1cee402dfb 100644 --- a/pkg/app/appserver/rpc_ingress_client_test.go +++ b/pkg/app/appserver/rpc_ingress_client_test.go @@ -1,3 +1,4 @@ +// Package appserver pkg/app/appserver/rpc_ingress_client_test.go package appserver import ( diff --git a/pkg/app/appserver/rpc_ingress_gateway.go b/pkg/app/appserver/rpc_ingress_gateway.go index 8d129e876c..0c5d355173 100644 --- a/pkg/app/appserver/rpc_ingress_gateway.go +++ b/pkg/app/appserver/rpc_ingress_gateway.go @@ -1,3 +1,4 @@ +// Package appserver pkg/app/appserver/rpc_ingress_gateway.go package appserver import ( diff --git a/pkg/app/appserver/rpc_ingress_gateway_test.go b/pkg/app/appserver/rpc_ingress_gateway_test.go index 6249a1b784..59209e5c2d 100644 --- a/pkg/app/appserver/rpc_ingress_gateway_test.go +++ b/pkg/app/appserver/rpc_ingress_gateway_test.go @@ -1,3 +1,4 @@ +// Package appserver pkg/app/appserver/rpc_ingress_gateway_test.go package appserver import ( diff --git a/pkg/app/appserver/stderr.go b/pkg/app/appserver/stderr.go index be12a59a90..6a9590a281 100644 --- a/pkg/app/appserver/stderr.go +++ b/pkg/app/appserver/stderr.go @@ -1,3 +1,4 @@ +// Package appserver pkg/app/appserver/stderr.go package appserver import ( diff --git a/pkg/app/client.go b/pkg/app/client.go index 1a99e4fdb4..a6a04a2796 100644 --- a/pkg/app/client.go +++ b/pkg/app/client.go @@ -1,3 +1,4 @@ +// Package app pkg/app/client.go package app import ( diff --git a/pkg/app/client_test.go b/pkg/app/client_test.go index 5755bef9a5..3ddad39ab3 100644 --- a/pkg/app/client_test.go +++ b/pkg/app/client_test.go @@ -1,3 +1,4 @@ +// Package app pkg/app/client_test.go package app import ( diff --git a/pkg/app/conn.go b/pkg/app/conn.go index 1a17f9c556..ee1fab16f3 100644 --- a/pkg/app/conn.go +++ b/pkg/app/conn.go @@ -1,3 +1,4 @@ +// Package app pkg/app/conn.go package app import ( diff --git a/pkg/app/conn_test.go b/pkg/app/conn_test.go index fd3506cee6..6398db8f5b 100644 --- a/pkg/app/conn_test.go +++ b/pkg/app/conn_test.go @@ -1,3 +1,4 @@ +// Package app pkg/app/conn_test.go package app import ( diff --git a/pkg/app/idmanager/manager.go b/pkg/app/idmanager/manager.go index 34417afe4a..a53da336dd 100644 --- a/pkg/app/idmanager/manager.go +++ b/pkg/app/idmanager/manager.go @@ -1,3 +1,4 @@ +// Package idmanager pkg/app/idmanager/manager.go package idmanager import ( diff --git a/pkg/app/idmanager/manager_test.go b/pkg/app/idmanager/manager_test.go index a6802b73f9..c570754a5f 100644 --- a/pkg/app/idmanager/manager_test.go +++ b/pkg/app/idmanager/manager_test.go @@ -1,3 +1,4 @@ +// Package idmanager pkg/app/idmanager/manager_test.go package idmanager import ( diff --git a/pkg/app/idmanager/util.go b/pkg/app/idmanager/util.go index d3a9e33420..1d9101fd6b 100644 --- a/pkg/app/idmanager/util.go +++ b/pkg/app/idmanager/util.go @@ -1,3 +1,4 @@ +// Package idmanager pkg/app/idmanager/util.go package idmanager import ( diff --git a/pkg/app/idmanager/util_test.go b/pkg/app/idmanager/util_test.go index b39ab86a0e..8b85e44cad 100644 --- a/pkg/app/idmanager/util_test.go +++ b/pkg/app/idmanager/util_test.go @@ -1,3 +1,4 @@ +// Package idmanager pkg/app/idmanager/util_test.go package idmanager import ( diff --git a/pkg/app/listener.go b/pkg/app/listener.go index 43d733b8c9..013d069771 100644 --- a/pkg/app/listener.go +++ b/pkg/app/listener.go @@ -1,3 +1,4 @@ +// Package app pkg/app/listener.go package app import ( diff --git a/pkg/app/listener_test.go b/pkg/app/listener_test.go index a9fda207e8..e4869862e4 100644 --- a/pkg/app/listener_test.go +++ b/pkg/app/listener_test.go @@ -1,3 +1,4 @@ +// Package app pkg/app/listener_test.go package app import ( diff --git a/pkg/router/network_stats.go b/pkg/router/network_stats.go index 62c84f5308..b3fec7225d 100644 --- a/pkg/router/network_stats.go +++ b/pkg/router/network_stats.go @@ -1,3 +1,4 @@ +// Package router pkg/router/network_stats.go package router import ( diff --git a/pkg/router/noise_route_group.go b/pkg/router/noise_route_group.go index 27b312d460..1acb4b97c3 100644 --- a/pkg/router/noise_route_group.go +++ b/pkg/router/noise_route_group.go @@ -1,3 +1,4 @@ +// Package router pkg/router/noise_route_group.go package router import ( diff --git a/pkg/router/route_group.go b/pkg/router/route_group.go index 2912eb469f..9b8293e9b0 100644 --- a/pkg/router/route_group.go +++ b/pkg/router/route_group.go @@ -1,3 +1,4 @@ +// Package router pkg/router/route_group.go package router import ( diff --git a/pkg/router/route_group_test.go b/pkg/router/route_group_test.go index cbfa7d1cf4..ac3365b27e 100644 --- a/pkg/router/route_group_test.go +++ b/pkg/router/route_group_test.go @@ -1,3 +1,4 @@ +// Package router pkg/router/route_group_test.go package router import ( diff --git a/pkg/router/router_test.go b/pkg/router/router_test.go index 96bb73e0f5..b503fffa8a 100644 --- a/pkg/router/router_test.go +++ b/pkg/router/router_test.go @@ -1,3 +1,4 @@ +// Package router pkg/router/router_test.go package router import ( diff --git a/pkg/router/routerclient/client_test.go b/pkg/router/routerclient/client_test.go index 53256ae166..42cc63bbf9 100644 --- a/pkg/router/routerclient/client_test.go +++ b/pkg/router/routerclient/client_test.go @@ -1,3 +1,4 @@ +// Package routerclient pkg/router/routerclient/client_test.go package routerclient import ( diff --git a/pkg/router/routerclient/dmsg_wrapper.go b/pkg/router/routerclient/dmsg_wrapper.go index 3ef07d1a7b..c5b0b02644 100644 --- a/pkg/router/routerclient/dmsg_wrapper.go +++ b/pkg/router/routerclient/dmsg_wrapper.go @@ -1,3 +1,4 @@ +// Package routerclient pkg/router/routerclient/dmsg_wrapper.go package routerclient import ( diff --git a/pkg/router/routerclient/map.go b/pkg/router/routerclient/map.go index 316a112001..fccd5d411a 100644 --- a/pkg/router/routerclient/map.go +++ b/pkg/router/routerclient/map.go @@ -1,3 +1,4 @@ +// Package routerclient pkg/router/routerclient/map.go package routerclient import ( diff --git a/pkg/router/routerclient/map_test.go b/pkg/router/routerclient/map_test.go index 1678a51838..a0f08b41bd 100644 --- a/pkg/router/routerclient/map_test.go +++ b/pkg/router/routerclient/map_test.go @@ -1,3 +1,4 @@ +// Package routerclient pkg/router/routerclient/map_test.go package routerclient import ( diff --git a/pkg/router/rpc_gateway.go b/pkg/router/rpc_gateway.go index 351277873d..99e1a288e4 100644 --- a/pkg/router/rpc_gateway.go +++ b/pkg/router/rpc_gateway.go @@ -1,3 +1,4 @@ +// Package router pkg/router/rpc_gateway.go package router import ( diff --git a/pkg/router/rpc_gateway_test.go b/pkg/router/rpc_gateway_test.go index 1f0e05fd3e..7752d4ff13 100644 --- a/pkg/router/rpc_gateway_test.go +++ b/pkg/router/rpc_gateway_test.go @@ -1,3 +1,4 @@ +// Package router pkg/router/rpc_gateway_test.go package router import ( diff --git a/pkg/routing/addr.go b/pkg/routing/addr.go index 06311790c3..73652268d7 100644 --- a/pkg/routing/addr.go +++ b/pkg/routing/addr.go @@ -1,3 +1,4 @@ +// Package routing pkg/routing/addr.go package routing import ( diff --git a/pkg/routing/failure.go b/pkg/routing/failure.go index f57cb7e12d..88d28a09cb 100644 --- a/pkg/routing/failure.go +++ b/pkg/routing/failure.go @@ -1,3 +1,4 @@ +// Package routing pkg/routing/failure.go package routing import ( diff --git a/pkg/routing/packet.go b/pkg/routing/packet.go index 533ceea467..d75502815c 100644 --- a/pkg/routing/packet.go +++ b/pkg/routing/packet.go @@ -1,3 +1,4 @@ +// Package routing pkg/routing/packet.go package routing import ( diff --git a/pkg/routing/packet_test.go b/pkg/routing/packet_test.go index 2bd4ee3e9b..7016ea564f 100644 --- a/pkg/routing/packet_test.go +++ b/pkg/routing/packet_test.go @@ -1,3 +1,4 @@ +// Package routing pkg/routing/packet_test.go package routing import ( diff --git a/pkg/routing/route_descriptor.go b/pkg/routing/route_descriptor.go index ae94d1b0cb..3a47e508b2 100644 --- a/pkg/routing/route_descriptor.go +++ b/pkg/routing/route_descriptor.go @@ -1,3 +1,4 @@ +// Package routing pkg/routing/route_descriptor.go package routing import ( diff --git a/pkg/routing/route_descriptor_test.go b/pkg/routing/route_descriptor_test.go index 36c0d8ee08..5cb0e03f8a 100644 --- a/pkg/routing/route_descriptor_test.go +++ b/pkg/routing/route_descriptor_test.go @@ -1,3 +1,4 @@ +// Package routing pkg/routing/route_descriptor_test.go package routing import ( diff --git a/pkg/routing/rule.go b/pkg/routing/rule.go index e68863128c..1d0b091fc8 100644 --- a/pkg/routing/rule.go +++ b/pkg/routing/rule.go @@ -1,3 +1,4 @@ +// Package routing pkg/routing/rule.go package routing import ( diff --git a/pkg/routing/rule_test.go b/pkg/routing/rule_test.go index 1d56027dbd..f4512d1a10 100644 --- a/pkg/routing/rule_test.go +++ b/pkg/routing/rule_test.go @@ -1,3 +1,4 @@ +// Package routing pkg/routing/rule_test.go package routing import ( diff --git a/pkg/routing/table.go b/pkg/routing/table.go index 02d9e3b973..bc85fe8695 100644 --- a/pkg/routing/table.go +++ b/pkg/routing/table.go @@ -1,3 +1,4 @@ +// Package routing pkg/routing/table.go package routing import ( diff --git a/pkg/routing/table_test.go b/pkg/routing/table_test.go index cae6a35f13..60b7b0097e 100644 --- a/pkg/routing/table_test.go +++ b/pkg/routing/table_test.go @@ -1,3 +1,4 @@ +// Package routing pkg/routing/table_test.go package routing import ( diff --git a/pkg/servicedisc/client.go b/pkg/servicedisc/client.go index 8c3f177965..e10a5c1395 100644 --- a/pkg/servicedisc/client.go +++ b/pkg/servicedisc/client.go @@ -1,3 +1,4 @@ +// Package servicedisc pkg/servicedisc/client.go package servicedisc import ( diff --git a/pkg/servicedisc/error.go b/pkg/servicedisc/error.go index d205f5c7f1..4ced7b52d5 100644 --- a/pkg/servicedisc/error.go +++ b/pkg/servicedisc/error.go @@ -1,3 +1,4 @@ +// Package servicedisc pkg/servicedisc/error.go package servicedisc import ( diff --git a/pkg/servicedisc/query.go b/pkg/servicedisc/query.go index 4a10f2c7c2..c282a8958f 100644 --- a/pkg/servicedisc/query.go +++ b/pkg/servicedisc/query.go @@ -1,3 +1,4 @@ +// Package servicedisc pkg/servicedisc/query.go package servicedisc import ( diff --git a/pkg/servicedisc/types.go b/pkg/servicedisc/types.go index 52383c5f5b..939ef3a93b 100644 --- a/pkg/servicedisc/types.go +++ b/pkg/servicedisc/types.go @@ -1,3 +1,4 @@ +// Package servicedisc pkg/servicedisc/types.go package servicedisc import ( diff --git a/pkg/servicedisc/types_test.go b/pkg/servicedisc/types_test.go index f15378ceef..6b88388223 100644 --- a/pkg/servicedisc/types_test.go +++ b/pkg/servicedisc/types_test.go @@ -1,3 +1,4 @@ +// Package servicedisc pkg/servicedisc/types_test.go package servicedisc import ( diff --git a/pkg/setup/id_reserver.go b/pkg/setup/id_reserver.go index 898a4bc741..8fc9a03b65 100644 --- a/pkg/setup/id_reserver.go +++ b/pkg/setup/id_reserver.go @@ -1,3 +1,4 @@ +// Package setup pkg/setup/id_reserver.go package setup import ( diff --git a/pkg/setup/id_reserver_test.go b/pkg/setup/id_reserver_test.go index d7081ad004..cdd6137992 100644 --- a/pkg/setup/id_reserver_test.go +++ b/pkg/setup/id_reserver_test.go @@ -1,3 +1,4 @@ +// Package setup pkg/setup/id_reserver_test.go package setup import ( diff --git a/pkg/setup/node.go b/pkg/setup/node.go index f986762bce..aaebd3b4db 100644 --- a/pkg/setup/node.go +++ b/pkg/setup/node.go @@ -1,3 +1,4 @@ +// Package setup pkg/setup/node.go package setup import ( diff --git a/pkg/setup/node_test.go b/pkg/setup/node_test.go index b64ef6aae5..a0f03ca377 100644 --- a/pkg/setup/node_test.go +++ b/pkg/setup/node_test.go @@ -1,3 +1,4 @@ +// Package setup pkg/setup/node_test.go package setup import ( diff --git a/pkg/setup/rpc_gateway.go b/pkg/setup/rpc_gateway.go index fed4ab5d83..fa2ec87387 100644 --- a/pkg/setup/rpc_gateway.go +++ b/pkg/setup/rpc_gateway.go @@ -1,3 +1,4 @@ +// Package setup pkg/setup/rpc_gateway.go package setup import ( diff --git a/pkg/setup/rules_map.go b/pkg/setup/rules_map.go index 2d1ae21284..54f11fbcaf 100644 --- a/pkg/setup/rules_map.go +++ b/pkg/setup/rules_map.go @@ -1,3 +1,4 @@ +// Package setup pkg/setup/rules_map.go package setup import ( diff --git a/pkg/setup/setupclient/wrappers.go b/pkg/setup/setupclient/wrappers.go index 4f3fdf3ade..03f1742b70 100644 --- a/pkg/setup/setupclient/wrappers.go +++ b/pkg/setup/setupclient/wrappers.go @@ -1,3 +1,4 @@ +// Package setupclient pkg/setup/setupclient/wrappers.go package setupclient import ( diff --git a/pkg/setup/setupmetrics/victoria_metrics.go b/pkg/setup/setupmetrics/victoria_metrics.go index 084b4da226..b5e05fbcd8 100644 --- a/pkg/setup/setupmetrics/victoria_metrics.go +++ b/pkg/setup/setupmetrics/victoria_metrics.go @@ -1,3 +1,4 @@ +// Package setupmetrics pkg/setup/setupmetrics/victoria_metrics.go package setupmetrics import ( diff --git a/pkg/setup/testing_test.go b/pkg/setup/testing_test.go index f95e23f4b4..2457622132 100644 --- a/pkg/setup/testing_test.go +++ b/pkg/setup/testing_test.go @@ -1,3 +1,4 @@ +// Package setup pkg/setup/testing_test.go package setup import ( diff --git a/pkg/transport/deprecated/deprecated.go b/pkg/transport/deprecated/deprecated.go index 32c1005090..8d15195f64 100644 --- a/pkg/transport/deprecated/deprecated.go +++ b/pkg/transport/deprecated/deprecated.go @@ -1,4 +1,4 @@ -/*Package deprecated contains transport status*/ +// Package deprecated pkg/transport/deprecated/deprecated.go package deprecated import ( diff --git a/pkg/transport/discovery.go b/pkg/transport/discovery.go index 32221a3888..6dd05c7880 100644 --- a/pkg/transport/discovery.go +++ b/pkg/transport/discovery.go @@ -1,3 +1,4 @@ +// Package transport pkg/transport/discovery.go package transport import ( diff --git a/pkg/transport/discovery_test.go b/pkg/transport/discovery_test.go index 2b91e6bcb5..33e3d17d4c 100644 --- a/pkg/transport/discovery_test.go +++ b/pkg/transport/discovery_test.go @@ -1,3 +1,4 @@ +// Package transport_test pkg/transport/discovery_test.go package transport_test import ( diff --git a/pkg/transport/entry.go b/pkg/transport/entry.go index cd0ae1e919..17952dc009 100644 --- a/pkg/transport/entry.go +++ b/pkg/transport/entry.go @@ -1,3 +1,4 @@ +// Package transport pkg/transport/entry.go package transport import ( diff --git a/pkg/transport/entry_test.go b/pkg/transport/entry_test.go index b23ef232a3..652a0a3aea 100644 --- a/pkg/transport/entry_test.go +++ b/pkg/transport/entry_test.go @@ -1,3 +1,4 @@ +// Package transport_test pkg/transport/entry_test.go package transport_test import ( diff --git a/pkg/transport/errors.go b/pkg/transport/errors.go index b180a92926..8b6e11b2d1 100644 --- a/pkg/transport/errors.go +++ b/pkg/transport/errors.go @@ -1,3 +1,4 @@ +// Package transport pkg/transport/errors.go package transport import "errors" diff --git a/pkg/transport/handshake.go b/pkg/transport/handshake.go index 0ac7dfb8ec..ab3636584f 100644 --- a/pkg/transport/handshake.go +++ b/pkg/transport/handshake.go @@ -1,3 +1,4 @@ +// Package transport pkg/transport/handshake.go package transport import ( diff --git a/pkg/transport/log.go b/pkg/transport/log.go index 0a4caf6b6a..166b136fd6 100644 --- a/pkg/transport/log.go +++ b/pkg/transport/log.go @@ -1,3 +1,4 @@ +// Package transport pkg/transport/log.go package transport import ( diff --git a/pkg/transport/log_test.go b/pkg/transport/log_test.go index d932258669..df779e25ed 100644 --- a/pkg/transport/log_test.go +++ b/pkg/transport/log_test.go @@ -1,3 +1,4 @@ +// Package transport_test pkg/transport/log_test.go package transport_test import ( diff --git a/pkg/transport/managed_transport.go b/pkg/transport/managed_transport.go index 18d5d3036d..674742c0f2 100644 --- a/pkg/transport/managed_transport.go +++ b/pkg/transport/managed_transport.go @@ -1,3 +1,4 @@ +// Package transport pkg/transport/managed_transport.go package transport import ( diff --git a/pkg/transport/manager.go b/pkg/transport/manager.go index 2aa2b1bbc7..cc83f61881 100644 --- a/pkg/transport/manager.go +++ b/pkg/transport/manager.go @@ -1,3 +1,4 @@ +// Package transport pkg/transport/manager.go package transport import ( diff --git a/pkg/transport/manager_test.go b/pkg/transport/manager_test.go index 20120f1326..581685e605 100644 --- a/pkg/transport/manager_test.go +++ b/pkg/transport/manager_test.go @@ -1,3 +1,4 @@ +// Package transport_test pkg/transport/manager_test.go package transport_test import ( diff --git a/pkg/transport/network/addrresolver/client_test.go b/pkg/transport/network/addrresolver/client_test.go index 50c9520b78..c80473a20d 100644 --- a/pkg/transport/network/addrresolver/client_test.go +++ b/pkg/transport/network/addrresolver/client_test.go @@ -1,3 +1,4 @@ +// Package addrresolver pkg/transport/network/addrresolver/client_test.go package addrresolver import ( diff --git a/pkg/transport/network/connection.go b/pkg/transport/network/connection.go index ebf96ce644..668fb62d5d 100644 --- a/pkg/transport/network/connection.go +++ b/pkg/transport/network/connection.go @@ -1,3 +1,4 @@ +// Package network pkg/transport/network/connection.go package network import ( diff --git a/pkg/transport/network/dmsg.go b/pkg/transport/network/dmsg.go index 1015323936..b990c36b9e 100644 --- a/pkg/transport/network/dmsg.go +++ b/pkg/transport/network/dmsg.go @@ -1,3 +1,4 @@ +// Package network pkg/transport/network/dmsg.go package network import ( diff --git a/pkg/transport/network/handshake/handshake_test.go b/pkg/transport/network/handshake/handshake_test.go index 690a72407f..45331d0c87 100644 --- a/pkg/transport/network/handshake/handshake_test.go +++ b/pkg/transport/network/handshake/handshake_test.go @@ -1,3 +1,4 @@ +// Package handshake pkg/transport/network/handshake/handshake_test.go package handshake import ( diff --git a/pkg/transport/network/listener.go b/pkg/transport/network/listener.go index 7f9a683c84..4bb2b3784f 100644 --- a/pkg/transport/network/listener.go +++ b/pkg/transport/network/listener.go @@ -1,3 +1,4 @@ +// Package network pkg/transport/network/listener.go package network import ( diff --git a/pkg/transport/network/network.go b/pkg/transport/network/network.go index 1186f201a9..8ea2b0170e 100644 --- a/pkg/transport/network/network.go +++ b/pkg/transport/network/network.go @@ -1,3 +1,4 @@ +// Package network pkg/transport/network/network.go package network import ( diff --git a/pkg/transport/network/stcp.go b/pkg/transport/network/stcp.go index fe5f12dbf9..1595a43b2b 100644 --- a/pkg/transport/network/stcp.go +++ b/pkg/transport/network/stcp.go @@ -1,3 +1,4 @@ +// Package network pkg/transport/network/stcp.go package network import ( diff --git a/pkg/transport/network/stcpr.go b/pkg/transport/network/stcpr.go index e2e80271be..7a219a5c77 100644 --- a/pkg/transport/network/stcpr.go +++ b/pkg/transport/network/stcpr.go @@ -1,3 +1,4 @@ +// Package network pkg/transport/network/stcpr.go package network import ( diff --git a/pkg/transport/network/stun_client.go b/pkg/transport/network/stun_client.go index 6f71dffea0..cf3d81bd6d 100644 --- a/pkg/transport/network/stun_client.go +++ b/pkg/transport/network/stun_client.go @@ -1,3 +1,4 @@ +// Package network pkg/transport/network/stun_client.go package network import ( diff --git a/pkg/transport/network/sudph.go b/pkg/transport/network/sudph.go index 1140aa99a3..4f3d39eff4 100644 --- a/pkg/transport/network/sudph.go +++ b/pkg/transport/network/sudph.go @@ -1,3 +1,4 @@ +// Package network pkg/transport/network/sudph.go package network import ( diff --git a/pkg/transport/setup/visor.go b/pkg/transport/setup/visor.go index 7733e2c9fe..05f25333ea 100644 --- a/pkg/transport/setup/visor.go +++ b/pkg/transport/setup/visor.go @@ -1,3 +1,4 @@ +// Package setup pkg/transport/setup/visor.go package setup import ( diff --git a/pkg/transport/tpdclient/client_test.go b/pkg/transport/tpdclient/client_test.go index 52a3298718..230317215b 100644 --- a/pkg/transport/tpdclient/client_test.go +++ b/pkg/transport/tpdclient/client_test.go @@ -1,3 +1,4 @@ +// Package tpdclient pkg/transport/tpdclient/client_test.go package tpdclient import ( diff --git a/pkg/utclient/client_test.go b/pkg/utclient/client_test.go index eae1b67f9f..512efbe9a5 100644 --- a/pkg/utclient/client_test.go +++ b/pkg/utclient/client_test.go @@ -1,3 +1,4 @@ +// Package utclient pkg/utclient/client_test.go package utclient import ( diff --git a/pkg/util/osutil/osutil.go b/pkg/util/osutil/osutil.go index 52cb64865f..4e500ef78b 100644 --- a/pkg/util/osutil/osutil.go +++ b/pkg/util/osutil/osutil.go @@ -1,3 +1,4 @@ +// Package osutil pkg/util/osutil/osutil.go package osutil import ( diff --git a/pkg/util/osutil/run.go b/pkg/util/osutil/run.go index 83c2132046..47eb0bb0e9 100644 --- a/pkg/util/osutil/run.go +++ b/pkg/util/osutil/run.go @@ -1,3 +1,4 @@ +// Package osutil pkg/util/osutil/run.go package osutil import ( diff --git a/pkg/util/pathutil/homedir.go b/pkg/util/pathutil/homedir.go index ad8409e7ec..bb9a9a472d 100644 --- a/pkg/util/pathutil/homedir.go +++ b/pkg/util/pathutil/homedir.go @@ -1,3 +1,4 @@ +// Package pathutil pkg/util/pathutil/homedir.go package pathutil import ( diff --git a/pkg/util/pathutil/util.go b/pkg/util/pathutil/util.go index 91aeadf55b..de6b797954 100644 --- a/pkg/util/pathutil/util.go +++ b/pkg/util/pathutil/util.go @@ -1,3 +1,4 @@ +// Package pathutil pkg/util/pathutil/util.go package pathutil import ( diff --git a/pkg/visor/api.go b/pkg/visor/api.go index 6d413ce9d7..53f46d5b50 100644 --- a/pkg/visor/api.go +++ b/pkg/visor/api.go @@ -1,3 +1,4 @@ +// Package visor pkg/visor/api.go package visor import ( diff --git a/pkg/visor/dmsgtracker/dmsg_tracker_test.go b/pkg/visor/dmsgtracker/dmsg_tracker_test.go index e49de5af7c..413df58101 100644 --- a/pkg/visor/dmsgtracker/dmsg_tracker_test.go +++ b/pkg/visor/dmsgtracker/dmsg_tracker_test.go @@ -1,3 +1,4 @@ +// Package dmsgtracker pkg/visor/dmsgtracker/dmsg_tracker_test.go package dmsgtracker import ( diff --git a/pkg/visor/hypervisor.go b/pkg/visor/hypervisor.go index 332cb648bb..f57d49a66c 100644 --- a/pkg/visor/hypervisor.go +++ b/pkg/visor/hypervisor.go @@ -1,3 +1,4 @@ +// Package visor pkg/visor/hypervisor.go package visor import ( diff --git a/pkg/visor/hypervisor_test.go b/pkg/visor/hypervisor_test.go index 9e99b675c1..d8c519cbb0 100644 --- a/pkg/visor/hypervisor_test.go +++ b/pkg/visor/hypervisor_test.go @@ -1,3 +1,4 @@ +// Package visor pkg/visor/hypervisor_test.go package visor import ( diff --git a/pkg/visor/init.go b/pkg/visor/init.go index 3b2b58a557..fdcb737e8f 100644 --- a/pkg/visor/init.go +++ b/pkg/visor/init.go @@ -1,3 +1,4 @@ +// Package visor pkg/visor/init.go package visor import ( diff --git a/pkg/visor/remote_hypervisor.go b/pkg/visor/remote_hypervisor.go index 61e16d6c37..16c1d5dc71 100644 --- a/pkg/visor/remote_hypervisor.go +++ b/pkg/visor/remote_hypervisor.go @@ -1,3 +1,4 @@ +// Package visor pkg/visor/remote_hypervisor.go package visor import ( diff --git a/pkg/visor/rpc.go b/pkg/visor/rpc.go index 06dae21fff..6f365f2796 100644 --- a/pkg/visor/rpc.go +++ b/pkg/visor/rpc.go @@ -1,3 +1,4 @@ +// Package visor pkg/visor/rpc.go package visor import ( diff --git a/pkg/visor/rpc_client.go b/pkg/visor/rpc_client.go index e9a6abe026..e7d33162d0 100644 --- a/pkg/visor/rpc_client.go +++ b/pkg/visor/rpc_client.go @@ -1,3 +1,4 @@ +// Package visor pkg/visor/rpc_client.go package visor import ( diff --git a/pkg/visor/rpc_client_serve.go b/pkg/visor/rpc_client_serve.go index 44a56fbcab..70158e959a 100644 --- a/pkg/visor/rpc_client_serve.go +++ b/pkg/visor/rpc_client_serve.go @@ -1,3 +1,4 @@ +// Package visor pkg/visor/rpc_client_serve.go package visor import ( diff --git a/pkg/visor/rpc_test.go b/pkg/visor/rpc_test.go index c417fe62c4..9028ada6be 100644 --- a/pkg/visor/rpc_test.go +++ b/pkg/visor/rpc_test.go @@ -1,3 +1,4 @@ +// Package visor pkg/visor/rpc_test.go package visor import ( diff --git a/pkg/visor/usermanager/user_manager.go b/pkg/visor/usermanager/user_manager.go index f1cf51123f..80982c0f6c 100644 --- a/pkg/visor/usermanager/user_manager.go +++ b/pkg/visor/usermanager/user_manager.go @@ -1,3 +1,4 @@ +// Package usermanager pkg/visor/usermanager/user_manager.go package usermanager import ( diff --git a/pkg/visor/usermanager/user_test.go b/pkg/visor/usermanager/user_test.go index 8832e218a0..cd85101021 100644 --- a/pkg/visor/usermanager/user_test.go +++ b/pkg/visor/usermanager/user_test.go @@ -1,3 +1,4 @@ +// Package usermanager pkg/visor/usermanager/user_test.go package usermanager import ( diff --git a/pkg/visor/visorconfig/common_test.go b/pkg/visor/visorconfig/common_test.go index fca274a25e..6f65a21171 100644 --- a/pkg/visor/visorconfig/common_test.go +++ b/pkg/visor/visorconfig/common_test.go @@ -1,3 +1,4 @@ +// Package visorconfig pkg/visor/visorconfig/common_test.go package visorconfig import ( diff --git a/pkg/visor/visorconfig/config.go b/pkg/visor/visorconfig/config.go index aa545e5871..c088d1145c 100644 --- a/pkg/visor/visorconfig/config.go +++ b/pkg/visor/visorconfig/config.go @@ -1,3 +1,4 @@ +// Package visorconfig pkg/visor/visorconfig/config.go package visorconfig import ( diff --git a/pkg/visor/visorconfig/parse.go b/pkg/visor/visorconfig/parse.go index e47abe4815..8a34fc314c 100644 --- a/pkg/visor/visorconfig/parse.go +++ b/pkg/visor/visorconfig/parse.go @@ -1,3 +1,4 @@ +// Package visorconfig pkg/visor/visorconfig/parse.go package visorconfig import ( diff --git a/pkg/visor/visorconfig/read.go b/pkg/visor/visorconfig/read.go index 2ef4f2f7c8..47d0676085 100644 --- a/pkg/visor/visorconfig/read.go +++ b/pkg/visor/visorconfig/read.go @@ -1,3 +1,4 @@ +// Package visorconfig pkg/visor/visorconfig/read.go package visorconfig import ( diff --git a/pkg/visor/visorconfig/services.go b/pkg/visor/visorconfig/services.go index 4f93640a90..5e94e8fb17 100644 --- a/pkg/visor/visorconfig/services.go +++ b/pkg/visor/visorconfig/services.go @@ -1,3 +1,4 @@ +// Package visorconfig pkg/visor/visorconfig/services.go package visorconfig import ( diff --git a/pkg/visor/visorconfig/types.go b/pkg/visor/visorconfig/types.go index f424a345e5..055597a1ad 100644 --- a/pkg/visor/visorconfig/types.go +++ b/pkg/visor/visorconfig/types.go @@ -1,3 +1,4 @@ +// Package visorconfig pkg/visor/visorconfig/types.go package visorconfig import ( diff --git a/pkg/visor/visorconfig/v1.go b/pkg/visor/visorconfig/v1.go index dcd9643c65..032d051ee3 100644 --- a/pkg/visor/visorconfig/v1.go +++ b/pkg/visor/visorconfig/v1.go @@ -1,3 +1,4 @@ +// Package visorconfig pkg/visor/visorconfig/v1.go package visorconfig import ( diff --git a/pkg/visor/visorconfig/v1_test.go b/pkg/visor/visorconfig/v1_test.go index 5a9d6721c2..1d1ef3921d 100644 --- a/pkg/visor/visorconfig/v1_test.go +++ b/pkg/visor/visorconfig/v1_test.go @@ -1,3 +1,4 @@ +// Package visorconfig pkg/visor/visorconfig/v1_test.go package visorconfig import ( diff --git a/skywire.go b/skywire.go index 78711817f6..2b778f83a6 100644 --- a/skywire.go +++ b/skywire.go @@ -1,4 +1,6 @@ +// Package skywire skywire.go +package skywire + /* -Package skywire ; workaround to avoid go module errors. +workaround to avoid go module errors. */ -package skywire