From cf59d6dbfa9da2b59b46fe52f984bcf45dec93f1 Mon Sep 17 00:00:00 2001 From: Cory Koch Date: Sun, 10 Nov 2024 23:08:05 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A5=20feat:=20Add=20Support=20for=20Re?= =?UTF-8?q?moving=20Routes=20(#3230)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Add new methods named RemoveRoute and RemoveRouteByName. * Update register method to prevent duplicate routes. * Clean up tests * Update docs * Add Dockerfile --- Dockerfile | 53 ++++++++++ docs/api/app.md | 53 ++++++++++ docs/whats_new.md | 8 ++ router.go | 76 +++++++++++++- router_test.go | 260 ++++++++++++++++++++++++++++++++++++++++++++-- 5 files changed, 439 insertions(+), 11 deletions(-) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000000..8a57e2e85c --- /dev/null +++ b/Dockerfile @@ -0,0 +1,53 @@ +# Usage: +# +## Linux: +# ``` +### To utilize the BuildKit cache use: +# DOCKER_BUILDKIT=1 docker build -t fiber . +# +# docker run -it --rm fiber make lint && make test +# ``` +# +## Windows: +# ``` +### To utilize the BuildKit cache use: +# docker build -t fiber . +# +# docker run -it --rm fiber make lint && make test +# ``` +# +# Note: BuildKit is the default builder for users on Docker Desktop. + + +# Use the official Golang image to create a build artifact. +FROM golang:latest AS builder + +RUN <