Skip to content
Snippets Groups Projects
Commit a192c846 authored by ko_oler's avatar ko_oler
Browse files

fix typo

parent e2a1c17d
No related branches found
No related tags found
No related merge requests found
...@@ -62,8 +62,6 @@ func (r *Registry) FromMap(m map[string]interface{}) (*ObjectId, error) { ...@@ -62,8 +62,6 @@ func (r *Registry) FromMap(m map[string]interface{}) (*ObjectId, error) {
func (r *Registry) FromObject(v interface{}) (*ObjectId, error) { func (r *Registry) FromObject(v interface{}) (*ObjectId, error) {
t := reflect.TypeOf(v) t := reflect.TypeOf(v)
fmt.Println(t.String())
fmt.Println(r.handlers)
if handler, ok := r.handlers[t]; ok { if handler, ok := r.handlers[t]; ok {
i := handler(v) i := handler(v)
if i == nil { if i == nil {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment