Does the Go language have function/method overloading?

后端 未结 3 1731
礼貌的吻别
礼貌的吻别 2020-12-01 11:51

I\'m porting a C library to Go. A C function (with varargs) is defined like this:

curl_easy_setopt(CURL *curl, CURLoption option, ...); 

So

3条回答
  •  悲&欢浪女
    2020-12-01 12:18

    According to this, it doesn't: http://golang.org/doc/go_for_cpp_programmers.html

    In the Conceptual Differences section, it says:

    "Go does not support function overloading and does not support user defined operators."

提交回复
热议问题