Skip to content

Commit 833ad19

Browse files
committed
align GOOS=tamago support to go1.24.0
1 parent 717b5d0 commit 833ad19

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// Copyright 2025 The Go Authors. All rights reserved.
2+
// Use of this source code is governed by a BSD-style
3+
// license that can be found in the LICENSE file.
4+
5+
//go:build tamago
6+
package mmap
7+
8+
import (
9+
"embed"
10+
"os"
11+
)
12+
13+
//go:embed testdata/*
14+
var testdata embed.FS
15+
func init() { os.CopyFS(".", testdata) }

src/context/example_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ func ExampleAfterFunc_connection() {
205205
return n, err
206206
}
207207

208-
listener, err := net.Listen("tcp", "localhost:0")
208+
listener, err := net.Listen("tcp", "127.0.0.1:0")
209209
if err != nil {
210210
fmt.Println(err)
211211
return

0 commit comments

Comments
 (0)