# README
opm
Go web framework
[Guide]
Installation
go get github.com/boyfinal/opm
Example
package main
import (
"net/http"
"github.com/boyfinal/opm"
"github.com/boyfinal/opm/middleware"
)
func main() {
// Echo instance
or := opm.NewRouter()
// Middleware
or.Use(middleware.Logger())
or.Use(middleware.Recover())
// Routes
or.GET("/", opm.HandlerFunc(func(c opm.Context) error {
return c.String(http.StatusOK, "Hello, World!")
})
srv := &opm.Server{
Addr: "localhost:8888",
WriteTimeout: time.Second * 60,
ReadTimeout: time.Second * 60,
IdleTimeout: time.Second * 60,
Handler: or,
}
// Start server
srv.Run()
}
# Functions
Contains determines whether an array includes a certain value among its entries.
GenerateRandBytes returns generated random bytes.
InArrayString determines whether an array string includes a certain value among its entries.
New returns a Server.
No description provided by the author
NumFormat is a function that takes in a variable of type interface{} and returns a string representation of that variable.
StrConcat concat multiple string.
Xor []byte.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Type aliases
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author