constraint: example of forcing an error for impossible builds

This commit is contained in:
2025-08-27 15:54:23 -04:00
parent 0d9ce81ed3
commit 95e06f326d
4 changed files with 14 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
//go:build !cgo
package constraint
func _() {
"This package requires cgo to build. An error here means cgo is disabled for your build."
}
+3
View File
@@ -0,0 +1,3 @@
//go:build cgo
package constraint
+3
View File
@@ -0,0 +1,3 @@
module git.sunturtle.xyz/zephyr/errors-my-beloved/syntax
go 1.25.0
+1
View File
@@ -7,4 +7,5 @@ use (
./iface
./sizeofstring
./stringer
./constraint
)