You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 11, 2018. It is now read-only.
The following program will panic, because interface type in struct.
Older Versions supported it.
package main
import (
"fmt"
"github.com/fatih/structs"
)
type MyStruct struct {
PublicKey interface{}
}
func main() {
mystruct := MyStruct{PublicKey: []byte("test")}
s := structs.Map(mystruct)
fmt.Printf("s %+v\n", s)
}
Tried to structs.Map an x509 certificate from crypto/x509 and it panics.
Older Version, commit e5ca5fe, does not have this problem.
Panic trace shows structs.go:119, where the last commit was around.
The text was updated successfully, but these errors were encountered:
The following program will panic, because interface type in struct.
Older Versions supported it.
Tried to structs.Map an x509 certificate from crypto/x509 and it panics.
Older Version, commit e5ca5fe, does not have this problem.
Panic trace shows structs.go:119, where the last commit was around.
The text was updated successfully, but these errors were encountered: