Goodrouter 0.3.6
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Goodrouter --version 0.3.6
NuGet\Install-Package Goodrouter -Version 0.3.6
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Goodrouter" Version="0.3.6" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Goodrouter" Version="0.3.6" />
<PackageReference Include="Goodrouter" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Goodrouter --version 0.3.6
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Goodrouter, 0.3.6"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=Goodrouter&version=0.3.6
#tool nuget:?package=Goodrouter&version=0.3.6
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
GoodRouter, .NET edition
A good router should:
- work in a server or a client (or any other) environment
- be able to construct routes based on their name
- should have a simple API!
- not do the actual navigation!
- be framework agnostic
- be very minimal and simple!
Check out the website, join our Discord server!
Example:
var router = new Router();
router.InsertRoute("all-products", "/product/all");
router.InsertRoute("product-detail", "/product/{id}");
// And now we can parse routes!
{
var route = router.ParseRoute("/not-found");
Assert.Equal(null, route);
}
{
var route = router.ParseRoute("/product/all");
Assert.Equal(
new Route(
"all-products"
),
route
);
}
{
var route = router.ParseRoute("/product/1");
Assert.Equal(
new Route(
"product-detail",
new Dictionary<string, string>() {
{"id", "1"}
}
),
route
);
}
// And we can stringify routes
{
var path = router.StringifyRoute(new Route(
"all-products"
));
Assert.Equal("/product/all", path);
}
{
var path = router.StringifyRoute(new Route(
"product-detail",
new Dictionary<string, string>() {
{"id", "2"}
}
));
Assert.Equal("/product/2", path);
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net6.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated | |
---|---|---|---|
1.0.6 | 590 | 11/7/2023 | |
1.0.0 | 731 | 3/10/2023 | |
0.3.6 | 690 | 3/9/2023 | |
0.2.0 | 760 | 2/5/2023 | |
0.1.3 | 716 | 2/1/2023 | |
0.1.2 | 730 | 2/1/2023 | |
0.1.1 | 687 | 2/1/2023 | |
0.1.0 | 678 | 1/31/2023 | |
0.0.19 | 721 | 1/29/2023 | |
0.0.18 | 730 | 1/29/2023 | |
0.0.17 | 764 | 1/29/2023 | |
0.0.16 | 739 | 1/29/2023 | |
0.0.15 | 724 | 1/29/2023 | |
0.0.14 | 694 | 1/29/2023 | |
0.0.12 | 717 | 1/28/2023 | |
0.0.10 | 705 | 1/28/2023 | |
0.0.9 | 729 | 1/28/2023 | |
0.0.8 | 700 | 1/28/2023 | |
0.0.7 | 757 | 1/27/2023 | |
0.0.5 | 765 | 1/27/2023 | |
0.0.1 | 805 | 1/27/2023 |