def staticcheck_analyzers(analyzers, prefix_path = "@io_bazel_rules_go//go/analyzer/staticcheck"):
    """A helper function that make it easier/cleaner to declare these analyers in nogo target
    Instead of:
        nogo(
            name = "nogo",
            deps = TOOLS_NOGO + [
                "@io_bazel_rules_go//go/analyzer/staticcheck:ST1000",
                "@io_bazel_rules_go//go/analyzer/staticcheck:ST1001",
            ],
            visibility = ["//visibility:public"],
        )

    We can write it as:
        nogo(
            name = "nogo",
            deps = TOOLS_NOGO + staticcheck_analyzers(["ST1000", "ST1001"]),
            visibility = ["//visibility:public"],
        )

    To enable all staticcheck analyzers:
        load("@io_bazel_rules_go//go/analyzer/staticcheck:def.bzl", "ANALYZERS")

        nogo(
            name = "nogo",
            deps = TOOLS_NOGO + staticcheck_analyzers([ANALYZERS]),
            visibility = ["//visibility:public"],
        )
    """
    return [prefix_path + ":" + a for a in analyzers]