Skip to content

Commit 3334b4a

Browse files
committed
Guard cgo-dependent code with cgo build tag.
1 parent 02aecfa commit 3334b4a

4 files changed

Lines changed: 12 additions & 0 deletions

File tree

internal/native/cgo_read.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE.txt file.
44

5+
//go:build cgo
6+
// +build cgo
7+
58
package native
69

710
/*

internal/native/cgo_write.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE.txt file.
44

5+
//go:build cgo
6+
// +build cgo
7+
58
package native
69

710
/*

internal/native/native.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE.txt file.
44

5+
//go:build cgo
6+
// +build cgo
7+
58
package native
69

710
/*

internal/native/patch.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE.txt file.
44

5+
//go:build cgo
6+
// +build cgo
7+
58
package native
69

710
/*

0 commit comments

Comments
 (0)