A snippet for golangs's method.