refactor: clean up code, remove unused methods

This commit is contained in:
Jonas Kaninda
2024-10-27 07:57:52 +01:00
parent cbedfe9ccc
commit 9dc918ece9
4 changed files with 9 additions and 64 deletions

View File

@@ -16,9 +16,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
import (
"fmt"
"github.com/gorilla/mux"
"github.com/jedib0t/go-pretty/v6/table"
"github.com/jkaninda/goma-gateway/internal/logger"
"github.com/jkaninda/goma-gateway/pkg/middleware"
"github.com/jkaninda/goma-gateway/util"
@@ -134,12 +132,3 @@ func (gatewayServer GatewayServer) Initialize() *mux.Router {
return r
}
func printRoute(routes []Route) {
t := table.NewWriter()
t.AppendHeader(table.Row{"Name", "Route", "Rewrite", "Destination"})
for _, route := range routes {
t.AppendRow(table.Row{route.Name, route.Path, route.Rewrite, route.Destination})
}
fmt.Println(t.Render())
}