profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/wdscxsj/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.
Yang Yang wdscxsj Beijing 行己有耻

wdscxsj/anki 0

Anki for desktop computers

wdscxsj/antlr4 0

ANTLR (ANother Tool for Language Recognition) is a powerful parser generator for reading, processing, executing, or translating structured text or binary files.

wdscxsj/antlrperfcomp 0

Performance comparison between Go and Java runtimes of ANTLR v4.7

wdscxsj/assets 0

Public assets

wdscxsj/cgasm 0

We're insanely passionate about command line asm documentation in the cloud, and we're crushing it!

wdscxsj/crow 0

Crow is very fast and easy to use C++ micro web framework (inspired by Python Flask)

wdscxsj/cryptography 0

cryptography is a package designed to expose cryptographic primitives and recipes to Python developers.

wdscxsj/doodle 0

Doodle for aboly.

startedvinta/pangu.js

started time in 11 minutes

issue commentjessevdk/go-flags

Usage seems inconsistent between WriteHelp and WriteManPage

Thanks! Usage is broken indeed. Any process with the patch?

chipaca

comment created time in 7 hours

startedstipub/stixfonts

started time in a day

startedskeeto/w64devkit

started time in 3 days

startedfancycode/MemoryModule

started time in 3 days

startedkhchen/memlib

started time in 3 days

startedhackstoic/golang-open-source-projects

started time in 3 days

startedOWASP/Go-SCP

started time in 4 days

startedvolatiletech/sqlboiler

started time in 4 days

startedhalfrost/Halfrost-Field

started time in 4 days

startedgoogle/tink

started time in 4 days

startedsmallnest/rpcx

started time in 5 days

startedgo-redis/redis

started time in 5 days

startedsyncthing/syncthing

started time in 5 days

starteddanielmiessler/SecLists

started time in 5 days

startedQbsuranAlang/arp-scan-windows-

started time in 5 days

startedgoogle/wire

started time in 5 days

startedsagemath/sage

started time in 5 days

startedmstamy2/PyPDF2

started time in 6 days

startedrdbende/Sun-Valley-ttk-theme

started time in 6 days

startedjessevdk/go-flags

started time in 6 days

startedtidwall/jj

started time in 7 days

startedgonum/gonum

started time in 8 days

startedshopspring/decimal

started time in 8 days

startedJetBrains/JetBrainsMono

started time in 8 days

startedgo-playground/validator

started time in 8 days

startedmoparisthebest/static-curl

started time in 8 days

issue openedlabstack/echo

IgnoreBase parameter of the static middleware counter-intuitive

I understand what IgnoreBase does but can't convince myself that it should be the preferred option (as suggested in #1701). Could we have some documentation to justify its use? Thanks!

Here is an example to show why I think NOT using it feels more natural.

package main

import (
	"net/http"

	"github.com/labstack/echo/v4"
	"github.com/labstack/echo/v4/middleware"
)

func main() {
	e := echo.New()
	g1 := e.Group("/a")
	g1.Use(middleware.StaticWithConfig(middleware.StaticConfig{
		Root:       "public",
		IgnoreBase: true,
	}))
	g2 := e.Group("/b")
	g2.Use(middleware.Static("public"))
	if err := e.Start("127.0.0.1:9000"); err != http.ErrServerClosed {
		e.Logger.Fatal(err)
	}
}

File system structure:

public/
    index.html  # says: public
    a/
        index.html  # says: outer a
        a/
            index.html  # says: inner a

Test:

$ curl http://localhost:9000/a/  # OK
public
$ curl http://localhost:9000/a/a  # really?
public
$ curl http://localhost:9000/a/a/a
outer a
$ curl http://localhost:9000/a/a/a/a  # so long?
inner a
$ curl http://localhost:9000/b/  # OK
public
$ curl http://localhost:9000/b/a  # OK
outer a
$ curl http://localhost:9000/b/a/a  # OK
inner a

created time in 9 days

PR opened labstack/echox

Update timeout.md

Synchronize with v4.4.0.

+8 -13

0 comment

1 changed file

pr created time in 10 days

push eventwdscxsj/echox

Yang Yang

commit sha b0ed3508ba02b8d6b67654c58fbe9c7a95f9a836

Update timeout.md Synchronize with v4.4.0.

view details

push time in 10 days