Answer the question
In order to leave comments, you need to log in
How can I learn more about methods/functions?
Python has a wonderful dir() function. It shows which methods/functions can be passed to our object. Example:
>>> a = [1, 2, 3]
>>> print dir(a)
['__add__', '__class__', '__contains__', '__delattr__', '__delitem__', '__delslice__', '__doc__' , '__eq__', '__format__', '__ge__', '__getattribute__', '__getitem__', '__getslice__', '__gt__', '__hash__', '__iadd__', '__imul__', '__init__', '__iter__', ' __le__', '__len__', '__lt__', '__mul__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__reversed__', '__rmul__', '
Is there something similar in GoLang? There is no console in Golang..
Answer the question
In order to leave comments, you need to log in
No, because go is a statically typed language. Although using the reflect package you can. But if you use reflection, then something went wrong with you and / or you need a different programming language
Python has a wonderful dir() function. It shows which methods/functions can be passed to our object.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question