Git Product home page Git Product logo

app's People

Contributors

arthurwhite avatar dsincl12 avatar xthezealot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

app's Issues

xss support

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?

[WIP]? I'd like to help!

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?

Is this project dead?

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

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
}

Handle root group

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.

views template error

--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"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.