mirror of
https://github.com/kataras/iris.git
synced 2025-12-20 03:17:04 +00:00
rename master branch to main
This commit is contained in:
@@ -513,7 +513,7 @@ var (
|
||||
|
||||
// Defaults contains the defaults macro and parameters types for the router.
|
||||
//
|
||||
// Read https://github.com/kataras/iris/tree/master/_examples/routing/macros for more details.
|
||||
// Read https://github.com/kataras/iris/tree/main/_examples/routing/macros for more details.
|
||||
Defaults = &Macros{
|
||||
String,
|
||||
Int,
|
||||
@@ -549,7 +549,7 @@ type Macros []*Macro
|
||||
// The "evaluator" is the function that is converted to an Iris handler which is executed every time
|
||||
// before the main chain of a route's handlers that contains this macro of the specific parameter type.
|
||||
//
|
||||
// Read https://github.com/kataras/iris/tree/master/_examples/routing/macros for more details.
|
||||
// Read https://github.com/kataras/iris/tree/main/_examples/routing/macros for more details.
|
||||
func (ms *Macros) Register(indent, alias string, isMaster, isTrailing bool, evaluator ParamEvaluator) *Macro {
|
||||
macro := NewMacro(indent, alias, isMaster, isTrailing, evaluator)
|
||||
if ms.register(macro) {
|
||||
|
||||
Reference in New Issue
Block a user