Discover Packages
github.com/devfacet/ginman
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: ? modules, 0 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
README
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.
Expand ▾
Collapse ▴
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.