mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-07-29 23:38:50 +02:00
gofmt -r rewrite of all 506 interface{} occurrences to the any alias
(identical semantics), drop unused spec constants into comments, rename
unused parameters to _, convert three if-else chains to tagged
switches, and use slices.ContainsFunc for the private-IP check. No
behavior change; the whole package is now gofmt-clean.
30 lines
457 B
Go
30 lines
457 B
Go
//go:build windows
|
|
|
|
package gobackend
|
|
|
|
func dupOutputFD(fd int) (int, error) {
|
|
// Windows build is primarily for local tooling/tests.
|
|
// Android runtime uses the !windows implementation.
|
|
return fd, nil
|
|
}
|
|
|
|
func truncateFD(_ int) error {
|
|
return nil
|
|
}
|
|
|
|
func seekFDStart(_ int) error {
|
|
return nil
|
|
}
|
|
|
|
func closeFD(fd int) error {
|
|
return nil
|
|
}
|
|
|
|
func isBestEffortTruncateError(err error) bool {
|
|
return true
|
|
}
|
|
|
|
func isBadFD(err error) bool {
|
|
return false
|
|
}
|