read-file

command
v0.0.0-...-a2a1f02 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 1, 2020 License: MIT Imports: 4 Imported by: 0

README

read-file example

Reading a file a few different ways.

GitHub Webpage

METHODS

Method 1

  • ioutil.ReadFile - Read entire file contents into memory

Method 2

  • os.Open - Open the file and read what you want

Method 3

  • bufio.NewReader - Buffered reading using bufio package.

RUN

go run read-file.go

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL