Files
chess/internal/client/command/save_wasm.go
T
lixen 35ed475904
test / test (push) Canceled after 0s
test / e2e (push) Canceled after 0s
v0.14.0 web replay UI, My games, CLI replay
2026-10-19 16:03:11 -04:00

13 lines
309 B
Go

//go:build js && wasm
package command
import "fmt"
// savePGN has no file system in the browser: the PGN is printed instead,
// to be copied from the terminal.
func savePGN(path, text string) error {
fmt.Print(text)
return fmt.Errorf("files cannot be saved from the browser; the PGN is printed above")
}