#!/usr/bin/env python
# coding=utf-8
from geyser.resources_python.methods.abs_method import AbstractMethod


class NewGoMethod( AbstractMethod ):
    def __init__( self, data ):
        super( NewGoMethod, self ).__init__( data, "New" )
        self.args = [ ]

    def getNative( self ):
        self.data.gofile.addImport( "fmt" )
        func = self.data.gofile.addFunction( self.Name() + self.data.gotype.Name( ) )
        func.addResults( "*" + self.data.gotype.Name( ) )

        body = '''    return &%s{} ''' % self.data.gotype.Name( )

        func.addBody( body )


834d687de9bfeb8084f178dac8adeb8fb42f41a8
<mask token>


class NewGoMethod(AbstractMethod):
    <mask token>
    <mask token>

<mask token>


class NewGoMethod(AbstractMethod):
    <mask token>

    def getNative(self):
        self.data.gofile.addImport('fmt')
        func = self.data.gofile.addFunction(self.Name() + self.data.gotype.
            Name())
        func.addResults('*' + self.data.gotype.Name())
        body = '    return &%s{} ' % self.data.gotype.Name()
        func.addBody(body)

<mask token>


class NewGoMethod(AbstractMethod):

    def __init__(self, data):
        super(NewGoMethod, self).__init__(data, 'New')
        self.args = []

    def getNative(self):
        self.data.gofile.addImport('fmt')
        func = self.data.gofile.addFunction(self.Name() + self.data.gotype.
            Name())
        func.addResults('*' + self.data.gotype.Name())
        body = '    return &%s{} ' % self.data.gotype.Name()
        func.addBody(body)

from geyser.resources_python.methods.abs_method import AbstractMethod


class NewGoMethod(AbstractMethod):

    def __init__(self, data):
        super(NewGoMethod, self).__init__(data, 'New')
        self.args = []

    def getNative(self):
        self.data.gofile.addImport('fmt')
        func = self.data.gofile.addFunction(self.Name() + self.data.gotype.
            Name())
        func.addResults('*' + self.data.gotype.Name())
        body = '    return &%s{} ' % self.data.gotype.Name()
        func.addBody(body)

#!/usr/bin/env python
# coding=utf-8
from geyser.resources_python.methods.abs_method import AbstractMethod


class NewGoMethod( AbstractMethod ):
    def __init__( self, data ):
        super( NewGoMethod, self ).__init__( data, "New" )
        self.args = [ ]

    def getNative( self ):
        self.data.gofile.addImport( "fmt" )
        func = self.data.gofile.addFunction( self.Name() + self.data.gotype.Name( ) )
        func.addResults( "*" + self.data.gotype.Name( ) )

        body = '''    return &%s{} ''' % self.data.gotype.Name( )

        func.addBody( body )

