package
module
Version:
v0.2.0
Opens a new window with list of versions in this module.
Published: Feb 17, 2023
License: MIT
Opens a new window with license information.
Imports: 18
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Ginman
A Golang library that provides wrapper for Gin Web Framework.
Usage
See _examples/basic/main.go.
Test
# Run tests
make test
# Continuous testing
make test-ui
Contributing
See CONTRIBUTING.md
License
Licensed under The MIT License (MIT)
For the full copyright and license information, please view the LICENSE.txt file.
Documentation
¶
Package ginman provides a simple wrapper for Gin Web Framework.
NewWithOptions returns a new gin.Engine instance by the given options.
Options represents the options which can be set when creating a new engine.
type Response struct {
Code int `json:"code,omitempty"`
Status string `json:"status,omitempty"`
Error interface{} `json:"error,omitempty"`
Redirect string `json:"-"`
RedirectResponse bool `json:"-"`
Sleep time.Duration `json:"-"`
}
Response represents an HTTP response.
Reply replies an HTTP request by the Response instance and the given trailing arguments.
Source Files
¶
Directories
¶
_examples
|
|
|
|
Click to show internal directories.
Click to hide internal directories.