1
0
mirror of https://github.com/imgproxy/imgproxy.git synced 2025-04-01 20:34:23 +02:00

New build contraints format

This commit is contained in:
DarthSim 2021-11-15 15:37:56 +06:00
parent 0f7b8790ce
commit ff0930a94d
7 changed files with 9 additions and 8 deletions

View File

@ -1,4 +1,4 @@
// +build linux darwin //go:build linux || darwin
package main package main

2
go.mod
View File

@ -1,6 +1,6 @@
module github.com/imgproxy/imgproxy/v3 module github.com/imgproxy/imgproxy/v3
go 1.15 go 1.16
require ( require (
cloud.google.com/go/storage v1.18.2 cloud.google.com/go/storage v1.18.2

View File

@ -1,4 +1,4 @@
// +build !linux //go:build !linux
package memory package memory

View File

@ -1,4 +1,4 @@
// +build linux //go:build linux
package memory package memory

View File

@ -1,4 +1,4 @@
// +build pprof //go:build pprof
package main package main

View File

@ -1,9 +1,11 @@
// +build !linux,!darwin !go1.11 //go:build (!linux && !darwin) || !go1.11
package reuseport package reuseport
import ( import (
"net" "net"
"github.com/imgproxy/imgproxy/v3/config"
) )
func Listen(network, address string) (net.Listener, error) { func Listen(network, address string) (net.Listener, error) {

View File

@ -1,5 +1,4 @@
// +build linux darwin //go:build (linux || darwin) && go1.11
// +build go1.11
package reuseport package reuseport