Skip to content

Installation

  • Go 1.26 or later
  • A Go project with .go and/or .templ files
Terminal window
go install github.com/LarsArtmann/art-dupl/cmd/art-dupl@latest

This installs the art-dupl binary to your $GOPATH/bin.

Terminal window
git clone https://github.com/LarsArtmann/art-dupl.git
cd art-dupl
go build -o art-dupl ./cmd/art-dupl

Or with Nix:

Terminal window
git clone https://github.com/LarsArtmann/art-dupl.git
cd art-dupl
nix build
nix run .#art-dupl -- ./src
Terminal window
art-dupl --version
Terminal window
art-dupl

This scans the current directory with the default threshold of 5 duplicated statements. Generated code (sqlc, templ, protobuf, mockgen, stringer) is filtered automatically.