waveterm/cmd/wsh/main-wsh.go

19 lines
298 B
Go
Raw Normal View History

2024-05-18 20:09:27 +02:00
// Copyright 2024, Command Line Inc.
// SPDX-License-Identifier: Apache-2.0
package main
import (
"fmt"
"os"
)
func main() {
barr, err := os.ReadFile("/Users/mike/Downloads/2.png")
if err != nil {
fmt.Println("error reading file:", err)
return
}
fmt.Println("file size:", len(barr))
}