Skip to content

Latest commit

 

History

History

example

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

filtgen-example

This is an example of how to use the filtgen.

Tasks

We recommend that this section be run with xc.

install:local

cd ../
go install -installsuffix filtgen

intall:latest-release

go install github.com/miyamo2/filtgen@latest

setup:goenv

Set GOEXPERIMENT to rangefunc if Go version is 1.22.

GOVER=$(go mod graph)
if [[ $GOVER == *"go@1.22"* ]]; then
  go env -w GOEXPERIMENT=rangefunc
fi

run:go-generate

go generate ./...