Skip to content

Commit ce4defc

Browse files
committed
further docs
1 parent 55e0e25 commit ce4defc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cli-files/go-cat/cmd/root.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ func NewRoodCmd() *cobra.Command {
3535
return fmt.Errorf("go-cat: %s: Is a directory", path)
3636
}
3737

38+
// Read the data from the file
39+
// https://pkg.go.dev/os#ReadFile
3840
data, err := os.ReadFile(path)
3941
if err != nil {
4042
return err

0 commit comments

Comments
 (0)