You could also call it from a test within your test package.

On Tue, 19 Nov 2024 at 15:53, Chris Burkert <burkert.ch...@gmail.com> wrote:

> Hi Axel,
>
> Maybe you can add something like `var _ = SkipIfIntegration` to your
>> package? i.e. trick the linter to stop it from complaining?
>>
>
> I already tried this, but it did not help.
>
> I even added the following, which made things worse:
>
> func init() {
> _ = SkipIfIntegration
> }
>
> $ deadcode ./...
> test/test.go:8:6: unreachable func: init#1
> test/test.go:12:6: unreachable func: SkipIfIntegration
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/golang-nuts/CAEkBMfG%3DoeWzDdpZirL4d9Bic8mEXU-Ru00bHzkyrEz2E_dccg%40mail.gmail.com.

Reply via email to