mirror of
https://github.com/imgproxy/imgproxy.git
synced 2025-03-27 20:30:27 +02:00
New build contraints format
This commit is contained in:
parent
0f7b8790ce
commit
ff0930a94d
@ -1,4 +1,4 @@
|
||||
// +build linux darwin
|
||||
//go:build linux || darwin
|
||||
|
||||
package main
|
||||
|
||||
|
2
go.mod
2
go.mod
@ -1,6 +1,6 @@
|
||||
module github.com/imgproxy/imgproxy/v3
|
||||
|
||||
go 1.15
|
||||
go 1.16
|
||||
|
||||
require (
|
||||
cloud.google.com/go/storage v1.18.2
|
||||
|
@ -1,4 +1,4 @@
|
||||
// +build !linux
|
||||
//go:build !linux
|
||||
|
||||
package memory
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
// +build linux
|
||||
//go:build linux
|
||||
|
||||
package memory
|
||||
|
||||
|
@ -1,9 +1,11 @@
|
||||
// +build !linux,!darwin !go1.11
|
||||
//go:build (!linux && !darwin) || !go1.11
|
||||
|
||||
package reuseport
|
||||
|
||||
import (
|
||||
"net"
|
||||
|
||||
"github.com/imgproxy/imgproxy/v3/config"
|
||||
)
|
||||
|
||||
func Listen(network, address string) (net.Listener, error) {
|
||||
|
@ -1,5 +1,4 @@
|
||||
// +build linux darwin
|
||||
// +build go1.11
|
||||
//go:build (linux || darwin) && go1.11
|
||||
|
||||
package reuseport
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user