golang: Add support for @func(Class) and @func to be used over @property

Since the beginning of pygolang it is possible to define methods
separate from class. For example

    @func(MyClass)
    def my_method(self, ...):
        ...

will define MyClass.my_method(*). This works for regular functions and
staticmethod/classmethod as well. But support for properties was missing
because there was no use case so far.

-> Add support for properties as well as I hit the need for it during my
work on wendelin.core monitoring.

Test class changed to inherit from object since on py2 properties work
only for new-style classes.

(*) see afa46cf5 (Turn pygopath into full pygolang) and 942ee900
    (golang: Deprecate @method(cls) in favour of @func(cls)) for details.

/reviewed-by @levin.zimmermann
/reviewed-on !31
25 jobs for master in 0 seconds
latest
Status Job ID Name Coverage
  External
passed Pygolang.UnitTest-Master.Python2

00:01:22

passed Pygolang.UnitTest-Master.Python3

00:01:58

passed Pygolang.UnitTest-Master.Python2

00:46:37

passed Pygolang.UnitTest-Master.Python2

00:05:17

passed Pygolang.UnitTest-Master.Python2

01:19:52

passed Pygolang.UnitTest-Master.Python2

00:01:38

passed Pygolang.UnitTest-Master.Python2

00:01:24

passed Pygolang.UnitTest-Master.Python2

00:48:14

passed Pygolang.UnitTest-Master.Python2

00:07:11

passed Pygolang.UnitTest-Master.Python2

00:01:27

passed Pygolang.UnitTest-Master.Python2

00:01:47

passed Pygolang.UnitTest-Master.Python2

00:01:43

passed Pygolang.UnitTest-Master.Python2

00:01:44

passed Pygolang.UnitTest-Master.Python3

00:01:46

passed Pygolang.UnitTest-Master.Python3

00:02:18

passed Pygolang.UnitTest-Master.Python3

01:05:53

passed Pygolang.UnitTest-Master.Python3

00:01:59

passed Pygolang.UnitTest-Master.Python3

00:30:37

passed Pygolang.UnitTest-Master.Python3

00:01:49

passed Pygolang.UnitTest-Master.Python3

00:02:32

passed Pygolang.UnitTest-Master.Python3

00:11:52

passed Pygolang.UnitTest-Master.Python3

00:01:47

failed Pygolang.UnitTest-Master.Python3

00:02:28

passed Pygolang.UnitTest-Master.Python3

00:06:53

passed Pygolang.UnitTest-Master.Python3

00:03:16