Skip to content

interface conversion: interface {} is map[string]interface {}, not url.Values #4

Description

@llaoj

since I change the store to redis.
this code cannot work

    store, err := session.Start(nil, w, r)
    if err != nil {
        return
    }
    if r.Form == nil {
        r.ParseForm()
    }
    store.Set("RequestForm", r.Form)
    store.Save()

...

    store, err := session.Start(nil, w, r)
    if err != nil {
        return
    }
    form, ok := store.Get("RequestForm")
    if !ok {
        return
    }
    clientID := form.(url.Values).Get("client_id")

occur this error
interface conversion: interface {} is map[string]interface {}, not url.Values.

how can i fix this? thx

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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