我有很少的C函数声明这样
CURLcode curl_wrapper_easy_setopt_long(CURL* curl, CURLoption option, long param);
CURLcode curl_wrapper_easy_setopt_str(CURL* curl, CURLoption option, char* param);
Run Code Online (Sandbox Code Playgroud)
我想将这些作为一个Go函数公开
func (e *Easy)SetOption(option Option, param interface{})
Run Code Online (Sandbox Code Playgroud)
所以我需要能够在运行时检查param类型.我该怎么做,这是个好主意(如果不是这种情况下的好习惯)?
go ×1