<s> """<STR_LIT>""" <EOL> from os import listdir <EOL> from os . path import dirname <EOL> from SublimeLinter . lint import Linter , util <EOL> class Gotype ( Linter ) : <EOL> """<STR_LIT>""" <EOL> syntax = ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> cmd = ( '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT:.>' ) <EOL> regex = r'<STR_LIT>' <EOL> error_stream = util . STREAM_STDERR <EOL> def __init__ ( self , view , syntax ) : <EOL> """<STR_LIT>""" <EOL> super ( Gotype , self ) . __init__ ( view , syntax ) <EOL> gopath = self . get_view_settings ( ) . get ( '<STR_LIT>' ) <EOL> if gopath : <EOL> if self . env : <EOL> self . env [ '<STR_LIT>' ] = gopath <EOL> else : <EOL> self . env = { '<STR_LIT>' : gopath } <EOL> def run ( self , cmd , code ) : <EOL> """<STR_LIT>""" <EOL> files = [ f for f in listdir ( dirname ( self . filename ) ) if f [ - <NUM_LIT:3> : ] == '<STR_LIT>' ] <EOL> return self . tmpdir ( cmd , files , code ) </s>
