From 2fe04c7c9b321f293c86586c376bc9e13fa726f2 Mon Sep 17 00:00:00 2001 From: 9seconds Date: Fri, 2 Apr 2021 21:27:34 +0300 Subject: [PATCH] Move utils to internal --- cli/proxy.go | 2 +- {utils => internal/utils}/rlimit.go | 0 {utils => internal/utils}/rlimit_windows.go | 0 {utils => internal/utils}/root_context.go | 0 {utils => internal/utils}/root_context_windows.go | 0 main.go | 2 +- 6 files changed, 2 insertions(+), 2 deletions(-) rename {utils => internal/utils}/rlimit.go (100%) rename {utils => internal/utils}/rlimit_windows.go (100%) rename {utils => internal/utils}/root_context.go (100%) rename {utils => internal/utils}/root_context_windows.go (100%) diff --git a/cli/proxy.go b/cli/proxy.go index b8e0a8e..4b54d8d 100644 --- a/cli/proxy.go +++ b/cli/proxy.go @@ -7,12 +7,12 @@ import ( "github.com/9seconds/mtg/v2/antireplay" "github.com/9seconds/mtg/v2/events" + "github.com/9seconds/mtg/v2/internal/utils" "github.com/9seconds/mtg/v2/ipblocklist" "github.com/9seconds/mtg/v2/logger" "github.com/9seconds/mtg/v2/mtglib" "github.com/9seconds/mtg/v2/stats" "github.com/9seconds/mtg/v2/timeattack" - "github.com/9seconds/mtg/v2/utils" "github.com/rs/zerolog" ) diff --git a/utils/rlimit.go b/internal/utils/rlimit.go similarity index 100% rename from utils/rlimit.go rename to internal/utils/rlimit.go diff --git a/utils/rlimit_windows.go b/internal/utils/rlimit_windows.go similarity index 100% rename from utils/rlimit_windows.go rename to internal/utils/rlimit_windows.go diff --git a/utils/root_context.go b/internal/utils/root_context.go similarity index 100% rename from utils/root_context.go rename to internal/utils/root_context.go diff --git a/utils/root_context_windows.go b/internal/utils/root_context_windows.go similarity index 100% rename from utils/root_context_windows.go rename to internal/utils/root_context_windows.go diff --git a/main.go b/main.go index d554166..55c4afa 100644 --- a/main.go +++ b/main.go @@ -5,7 +5,7 @@ import ( "time" "github.com/9seconds/mtg/v2/cli" - "github.com/9seconds/mtg/v2/utils" + "github.com/9seconds/mtg/v2/internal/utils" "github.com/alecthomas/kong" )