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:
@@ -10,7 +10,7 @@ import (
|
||||
)
|
||||
|
||||
// This example is equivalent to the
|
||||
// https://github.com/kataras/iris/blob/master/_examples/hello-world/main.go
|
||||
// https://github.com/kataras/iris/blob/main/_examples/hello-world/main.go
|
||||
//
|
||||
// It seems that additional code you
|
||||
// have to write doesn't worth it
|
||||
|
||||
@@ -27,7 +27,7 @@ Navigate to that `app` folder and execute the following command:
|
||||
|
||||
```sh
|
||||
$ go init app
|
||||
$ go get github.com/kataras/iris/v12@master
|
||||
$ go get github.com/kataras/iris/v12@main
|
||||
# or @latest for the latest official release.
|
||||
```
|
||||
|
||||
@@ -136,7 +136,7 @@ func (db *sqlite) Exec(q string) error { return nil }
|
||||
|
||||
The `DB` depends on the `Environment.
|
||||
|
||||
> A practical and operational database example, including Docker images, can be found at the following guide: https://github.com/kataras/iris/tree/master/_examples/database/mysql
|
||||
> A practical and operational database example, including Docker images, can be found at the following guide: https://github.com/kataras/iris/tree/main/_examples/database/mysql
|
||||
|
||||
## Service
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ package main
|
||||
/*
|
||||
There is no MVC naming pattern for such these things,you can imagine the limitations of that.
|
||||
Instead you can use the `BeforeActivation` on your controller to add more advanced routing features
|
||||
(https://github.com/kataras/iris/tree/master/_examples/routing).
|
||||
(https://github.com/kataras/iris/tree/main/_examples/routing).
|
||||
|
||||
You can also create your own macro,
|
||||
i.e: /{file:json} or macro function of a specific parameter type i.e: (/{file:string json()}).
|
||||
|
||||
@@ -575,13 +575,13 @@ Open one or more browser tabs at: http://localhost:8080 and have fun!
|
||||
|
||||
### Download the Source Code
|
||||
|
||||
The whole project, all the files you saw in this article are located at: https://github.com/kataras/iris/tree/master/_examples/mvc/vuejs-todo-mvc
|
||||
The whole project, all the files you saw in this article are located at: https://github.com/kataras/iris/tree/main/_examples/mvc/vuejs-todo-mvc
|
||||
|
||||
## References
|
||||
|
||||
https://vuejs.org/v2/examples/todomvc.html (using browser's local storage)
|
||||
|
||||
https://github.com/kataras/iris/tree/master/_examples/mvc (mvc examples and features overview repository)
|
||||
https://github.com/kataras/iris/tree/main/_examples/mvc (mvc examples and features overview repository)
|
||||
|
||||
## Thank you, once again
|
||||
|
||||
|
||||
Reference in New Issue
Block a user