prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  GofmtBear: Add advanced asciinema
  The coala bear GofmtBear does not have a proper asciinema.
  
  `gofmt` is a command line tool that automatically solves formatting / styling issues to the absolute coding style that Go has.
  
  I'm planning to use a working code as the sample where it's filled with mixed indentation (spaces and tabs), semicolons and demonstrate how gofmt formats the code automatically and correctly to the absolute Go coding style.
  
  
  </issue>
  <code>
  [start of bears/go/GofmtBear.py]
  1 from coalib.bearlib.abstractions.Linter import linter
  2 from coalib.bears.requirements.GoRequirement import GoRequirement
  3 
  4 
  5 @linter(executable='gofmt',
  6         use_stdin=True,
  7         output_format='corrected',
  8         result_message='Formatting can be improved.')
  9 class GofmtBear:
  10     """
  11     Suggest better formatting options in Go code. Basic checks like alignment,
  12     indentation, and redundant parentheses are provided.
  13 
  14     This is done using the ``gofmt`` utility. For more information visit
  15     <https://golang.org/cmd/gofmt/>.
  16     """
  17     LANGUAGES = {'Go'}
  18     REQUIREMENTS = {GoRequirement(package='golang.org/cmd/gofmt', flag='-u')}
  19     AUTHORS = {'The coala developers'}
  20     AUTHORS_EMAILS = {'coala-devel@googlegroups.com'}
  21     LICENSE = 'AGPL-3.0'
  22     CAN_FIX = {'Formatting'}
  23 
  24     @staticmethod
  25     def create_arguments(filename, file, config_file):
  26         return ()
  27
  [end of bears/go/GofmtBear.py]
  </code>
  
  I need you to solve this issue by generating a single patch file that I can apply directly to this repository using git apply. Please respond with a single patch file in the following format.
  <patch>
  diff --git a/file.py b/file.py
  --- a/file.py
  +++ b/file.py
  @@ -1,27 +1,35 @@
   def euclidean(a, b):
  -    while b:
  -        a, b = b, a % b
  -    return a
  +    if b == 0:
  +        return a
  +    return euclidean(b, a % b)
   
   
   def bresenham(x0, y0, x1, y1):
       points = []
       dx = abs(x1 - x0)
       dy = abs(y1 - y0)
  -    sx = 1 if x0 < x1 else -1
  -    sy = 1 if y0 < y1 else -1
  -    err = dx - dy
  +    x, y = x0, y0
  +    sx = -1 if x0 > x1 else 1
  +    sy = -1 if y0 > y1 else 1
   
  -    while True:
  -        points.append((x0, y0))
  -        if x0 == x1 and y0 == y1:
  -            break
  -        e2 = 2 * err
  -        if e2 > -dy:
  -            err -= dy
  -            x0 += sx
  -        if e2 < dx:
  -            err += dx
  -            y0 += sy
  +    if dx > dy:
  +        err = dx / 2.0
  +        while x != x1:
  +            points.append((x, y))
  +            err -= dy
  +            if err < 0:
  +                y += sy
  +                err += dx
  +            x += sx
  +    else:
  +        err = dy / 2.0
  +        while y != y1:
  +            points.append((x, y))
  +            err -= dx
  +            if err < 0:
  +                x += sx
  +                err += dy
  +            y += sy
  +
  +    points.append((x, y))
       return points
  
  </patch>
golden_diff: diff --git a/bears/go/GofmtBear.py b/bears/go/GofmtBear.py
  --- a/bears/go/GofmtBear.py
  +++ b/bears/go/GofmtBear.py
  @@ -20,6 +20,7 @@
       AUTHORS_EMAILS = {'coala-devel@googlegroups.com'}
       LICENSE = 'AGPL-3.0'
       CAN_FIX = {'Formatting'}
  +    ASCIINEMA_URL = 'https://asciinema.org/a/94812'
   
       @staticmethod
       def create_arguments(filename, file, config_file):
  
verification_info: {"golden_diff": "diff --git a/bears/go/GofmtBear.py b/bears/go/GofmtBear.py\n--- a/bears/go/GofmtBear.py\n+++ b/bears/go/GofmtBear.py\n@@ -20,6 +20,7 @@\n     AUTHORS_EMAILS = {'coala-devel@googlegroups.com'}\n     LICENSE = 'AGPL-3.0'\n     CAN_FIX = {'Formatting'}\n+    ASCIINEMA_URL = 'https://asciinema.org/a/94812'\n \n     @staticmethod\n     def create_arguments(filename, file, config_file):\n", "issue": "GofmtBear: Add advanced asciinema\nThe coala bear GofmtBear does not have a proper asciinema.\r\n\r\n`gofmt` is a command line tool that automatically solves formatting / styling issues to the absolute coding style that Go has.\r\n\r\nI'm planning to use a working code as the sample where it's filled with mixed indentation (spaces and tabs), semicolons and demonstrate how gofmt formats the code automatically and correctly to the absolute Go coding style.\r\n\n", "before_files": [{"content": "from coalib.bearlib.abstractions.Linter import linter\nfrom coalib.bears.requirements.GoRequirement import GoRequirement\n\n\n@linter(executable='gofmt',\n        use_stdin=True,\n        output_format='corrected',\n        result_message='Formatting can be improved.')\nclass GofmtBear:\n    \"\"\"\n    Suggest better formatting options in Go code. Basic checks like alignment,\n    indentation, and redundant parentheses are provided.\n\n    This is done using the ``gofmt`` utility. For more information visit\n    <https://golang.org/cmd/gofmt/>.\n    \"\"\"\n    LANGUAGES = {'Go'}\n    REQUIREMENTS = {GoRequirement(package='golang.org/cmd/gofmt', flag='-u')}\n    AUTHORS = {'The coala developers'}\n    AUTHORS_EMAILS = {'coala-devel@googlegroups.com'}\n    LICENSE = 'AGPL-3.0'\n    CAN_FIX = {'Formatting'}\n\n    @staticmethod\n    def create_arguments(filename, file, config_file):\n        return ()\n", "path": "bears/go/GofmtBear.py"}]}