Commits

Yoshifumi YAMAGUCHI committed 899043d

reading errors.go

Comments (0)

Files changed (1)

notes/source/golang/errors.rst

 
 .. go:type:: errorString
 
+   .. code-block:: go
+
+      type errorString struct {
+          s string
+      }
+      
+      
+
 
 .. go:function:: func (e *errorString) Error() string
 
+   .. code-block:: go
 
+      func (e *errorString) Error() string {
+          return e.s
+      }