Skip to content

Remove the dependency of github.com/gorilla/context #92

@xuwei0455

Description

@xuwei0455

I found github.com/gorilla/context had been in maintenance mode, After some search of dependency for it.

I truly just find one place that uses the gorilla context, as follows:
https://github.com/gin-contrib/sessions/blob/master/sessions.go#L64

func Sessions(name string, store Store) gin.HandlerFunc {
	return func(c *gin.Context) {
		s := &session{name, c.Request, store, nil, false, c.Writer}
		c.Set(DefaultKey, s)
		defer context.Clear(c.Request)
		c.Next()
	}
}

even github.com/gorilla/sessionshad removed the dependency, so why we need to keep the dependency?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions