Skip to content
This repository was archived by the owner on Dec 8, 2022. It is now read-only.
This repository was archived by the owner on Dec 8, 2022. It is now read-only.

Compatible with interface{} #65

Open

Description

@c625473164

If meet some fields which not supported such as interface{}, Can we just ignore the err.
For example

struct Test{
A  int
B string
C interface{}
}

I only want A, B filed, just give me C with a nil value

Activity

  1. bxcodec commented on Mar 28, 2019

    @bxcodec
    Owner

    I don't think it's will be good.
    If you want to ignore the interface, maybe you can add the skip tag.

    struct Test{
    A  int
    B string
    C interface{} `faker:"-"`
    }
    
  2. c625473164 commented on Mar 28, 2019

    @c625473164
    Author

    the struct is sometimes generated by thrift or other tools such as protobuf, so it's not so convenient to add tags

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions