How to make, what one function and the same could accept different type of parameters? for example, if it receives an incoming int parameter, one is done, if the string is something else. eg
func myfunc(??? ){ //ΠΊΠ°ΠΊΠΎΠ΅-Π½ΠΈΠ±ΡΠ΄Ρ ΠΎΠ΄ΠΈΠ½Π°ΠΊΠΎΠ²ΠΎΠ΅ Π΄Π΅ΠΉΡΡΠ²ΠΈΠ΅ Π΄Π»Ρ ΠΎΠ±ΠΎΠΈΡ
Π²Π°ΡΠΈΠ°Π½ΡΠΎΠ² log.Println("ΠΠ½Π΅ ΠΏΠ΅ΡΠ΅Π΄Π°Π»ΠΈ ΡΠΈΡΠ»ΠΎ,ΠΈΠ΄ΡΠΌ ΠΏΠΎ ΠΏΡΡΠΈ 1")//ΠΈΠ»ΠΈ... log.Println("ΠΠ½Π΅ ΠΏΠ΅ΡΠ΅Π΄Π°Π»ΠΈ ΡΡΡΠΎΠΊΡ,ΠΈΠ΄ΡΠΌ ΠΏΠΎ ΠΏΡΡΠΈ 2") } Or do you need to write 2 different functions?