postgresql Golang Postgres "LastInsertId is not supported by this driver" When use golang connect to postgres, if you want to call LastInsertId, you will get this error. But you can get the latest ID by another method. Use Returning keyword to get the
golang golang: use reflect to get field's value from a interface{} to map[string]interface{} If you want to get all fields' value from a interface{}, you can use reflect. First, use reflect.ValueOf to get the value, then use .Elem() get the element. Then you can get
golang Golang use reflect interface{} to struct{} If you just want to know how to convert interface{} to struct{}, the code just as below: interface.(*Struct) you can use reflect.ValueOf to get the value of interface, then use Interface(