2018-11-03 04:52:22 +00:00
|
|
|
{ buildGoPackage
|
|
|
|
, lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoPackage rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "iferr-unstable";
|
2018-11-03 04:52:22 +00:00
|
|
|
version = "2018-06-15";
|
|
|
|
rev = "bb332a3b1d9129b6486c7ddcb7030c11b05cfc88";
|
|
|
|
|
|
|
|
goPackagePath = "github.com/koron/iferr";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
inherit rev;
|
|
|
|
|
|
|
|
owner = "koron";
|
|
|
|
repo = "iferr";
|
|
|
|
sha256 = "1nyqy1sgq2afiama4wy7wap8s03c0hiwwa0f6kwq3y59097rfc0c";
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = ''Generate "if err != nil {" block'';
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/koron/iferr";
|
2018-11-03 04:52:22 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ kalbasit ];
|
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
|
|
|
};
|
|
|
|
}
|