How to select rows by IPv4?

I have a field with IPv4 type in the ClickHouse table. I use clickhouse-go to work with ClickHouse in Golang. But I can't find out how to get rows by IPv4 field.

If I pass ip as a string, I get:

Illegal types of arguments (IPv4, String)

If I pass ip as a net.IP, I get:

Illegal types of arguments (IPv4, Tuple(UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8))

My code looks like this one:

q := `SELECT id FROM history WHERE ip = (?)`

tx.Queryx(q, net.ParseIP("1.1.1.1")) // or just "1.1.1.1"