gowww / app Goto Github PK
View Code? Open in Web Editor NEW๐ Full featured HTTP framework for web apps
License: MIT License
๐ Full featured HTTP framework for web apps
License: MIT License
@ArthurWhite hello! csrf support In the plan?
removes (deletes) all HTML and malicious detected input from user input on
handles three Request types:
JSON requests - Content-Type application/json
Form Encoded - Content-Type application/x-www-form-urlencoded
Multipart Form Data - Content-Type multipart/form-data
@ArthurWhite Any plan support?
Hello! I haven't landed on a web framework in Go that I've liked everything about so far. Each one either has some functionality that I wish it had or it has way too much functionality. I stumbled upon your router library and have messed around a little with it. It was my attempt at putting together what I needed as a mini framework while I was waiting on this one! I've looked through all of the code and I think this may be the best choice for what I like in a framework.
I'd love to help get it out of the [WIP] state if you'd like some help! Have anything that is outstanding that I could take a crack at?
Hi,
There is not activity since long time on this project, neither on Issues, nor Pull Requests. So, a simple question, is this project DEAD?
Add use middleware support , More flexible Middleware
app.Use(RealIP)
func RealIP(h http.Handler) http.Handler {
fn := func(w http.ResponseWriter, r *http.Request) {
if rip := realIP(r); rip != "" {
r.RemoteAddr = rip
}
h.ServeHTTP(w, r)
}
return http.HandlerFunc(fn)
}
func realIP(r *http.Request) string {
var ip string
if xff := r.Header.Get(xForwardedFor); xff != "" {
i := strings.Index(xff, ", ")
if i == -1 {
i = len(xff)
}
ip = xff[:i]
} else if xrip := r.Header.Get(xRealIP); xrip != "" {
ip = xrip
}
return ip
}
hello @ArthurWhite ,Consider adding session support to the Context?
Will it be maintained?
Actually, group paths are simply prefixed to route paths.
app.Group("/")
would lead to a double /
prefix in the group route paths.
This can be useful for making groups only to assign common middlewares to a bunch of routes, without adding an URL prefix.
make incremental changes to the template
--views
--home
--header.html
--index.html
index.html
{{template "home/header.html" .}}
head.html
test
html/template:index.html:5:11: no such template "home/header.html"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.