def is_go_source(view, point=None):
    """Return True if the given view contains Go source code.

    :param sublime.View view: View containing the code to be formatted.
    :returns: bool
    """
    if point is None:
        point = view.sel()[0].begin()
    return view.score_selector(point, 'source.go') > 0