© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
B. Feigenbaum, Ph.D.Go for Java Programmershttps://doi.org/10.1007/978-1-4842-7199-5_14

14. Go Package Survey

Barry Feigenbaum, Ph.D.1  
(1)
Austin, TX, USA
 

This chapter contains brief introductions to several Go packages. Other chapters that follow discuss select packages at a more detailed level.

File Access with Go

A commonly used area where Go and Java differ somewhat is in accessing files and directories. Java’s design tends to abstract file access to each more than Go’s does. Java provides multiple modes of access:
  1. 1.

    Byte/character streams – Files look like sequences of bytes or characters.

     
  2. 2.

    Byte/character channels – Support block mode access; oriented ...

Get Go for Java Programmers: Learn the Google Go Programming Language now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.