We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55e0e25 commit ce4defcCopy full SHA for ce4defc
1 file changed
cli-files/go-cat/cmd/root.go
@@ -35,6 +35,8 @@ func NewRoodCmd() *cobra.Command {
35
return fmt.Errorf("go-cat: %s: Is a directory", path)
36
}
37
38
+ // Read the data from the file
39
+ // https://pkg.go.dev/os#ReadFile
40
data, err := os.ReadFile(path)
41
if err != nil {
42
return err
0 commit comments