mirror of
https://github.com/kataras/iris.git
synced 2025-12-19 19:07:06 +00:00
Start of the internal cmd
gen website examples is the first command that I should finish soon because we need it for the website's "Recipe" page. Two more html query-relative dependencies added. Former-commit-id: 04b7f8bb968cbc3c441e2a09a4aa525b10cd4aca
This commit is contained in:
13
internal/cmd/gen/website/examples/example.go
Normal file
13
internal/cmd/gen/website/examples/example.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package examples
|
||||
|
||||
// Category defines the category of which will contain examples.
|
||||
type Category struct {
|
||||
Name string // i.e "Beginner", "Intermediate", "Advanced", first upper.
|
||||
Examples []Example
|
||||
}
|
||||
|
||||
// Example defines the example link.
|
||||
type Example struct {
|
||||
Name string // i.e: Hello World
|
||||
DataSource string // i.e: https://raw.githubusercontent.com/kataras/iris/master/_examples/beginner/hello-world.go
|
||||
}
|
||||
Reference in New Issue
Block a user