#NEWLINE# def generate( self , local_go_targets ) : #NEWLINE# #INDENT# 'Automatically generates a Go target graph for the given local go targets.\n\n    :param iter local_go_targets: The target roots to fill in a target graph for.\n    :raises: :class:`GoTargetGenerator.GenerationError` if any missing targets cannot be generated.\n    ' #NEWLINE# visited = { l . import_path : l . address for l in local_go_targets } #NEWLINE# with temporary_dir ( ) as gopath : #NEWLINE# #INDENT# for local_go_target in local_go_targets : #NEWLINE# #INDENT# deps = self . _list_deps ( gopath , local_go_target . address ) #NEWLINE# self . _generate_missing ( gopath , local_go_target . address , local_go_targets , visited ) #NEWLINE# #UNINDENT# #UNINDENT# return visited . items ( )