Course Hive
Search

Welcome

Sign in or create your account

Continue with Google
or
Cap. 16 – Aplicações – 4. A interface Writer
Play lesson

Aprenda Go 🇧🇷 - Cap. 16 – Aplicações – 4. A interface Writer

5.0 (2)
47 learners

What you'll learn

This course includes

  • 21.3 hours of video
  • Certificate of completion
  • Access on mobile and TV

Aprenda Go 🇧🇷 Cap. 16 – Aplicações – 4. A interface Writer

Cap. 16 – Aplicações – 4. A interface Writer Transcript and Lesson Notes

- A interface writer do pacote io. - type Writer interface { Write(p []byte) (n int, err error) } - pkg os: func (f *File) Write(b []byte) (n int, err error) - pkg json: func NewEncoder(w io.Writer) *Encoder - "Println [

Quick Summary

- A interface writer do pacote io. - type Writer interface { Write(p []byte) (n int, err error) } - pkg os: func (f *File) Write(b []byte) (n int, err error) - pkg json: func NewEncoder(w io.Writer) *Encoder - "Println [

Key Takeaways

  • Review the core idea: - A interface writer do pacote io. - type Writer interface { Write(p []byte) (n int, err error) } - pkg os: func (f *File) Write(b []byte) (n int, err error) - pkg json: func NewEncoder(w io.Writer) *Encoder - "Println [
  • Understand how go fits into Cap. 16 – Aplicações – 4. A interface Writer.
  • Understand how golang fits into Cap. 16 – Aplicações – 4. A interface Writer.
  • Understand how programacao fits into Cap. 16 – Aplicações – 4. A interface Writer.
  • Understand how programar fits into Cap. 16 – Aplicações – 4. A interface Writer.

Key Concepts

Full Transcript

- A interface writer do pacote io. - type Writer interface { Write(p []byte) (n int, err error) } - pkg os: func (f *File) Write(b []byte) (n int, err error) - pkg json: func NewEncoder(w io.Writer) *Encoder - "Println [...] writes to standard output." - func Println [...] return Fprintln(os.Stdout, a...) - func Fprintln(w io.Writer, a ...interface{}) (n int, err error) - Stdout: NewFile(uintptr(syscall.Stdout), "/dev/stdout") (Google: Standard streams) - func NewFile(fd uintptr, name string) *File - func (f *File) Write(b []byte) (n int, err error) - Exemplo: - Println - Fprintln os.Stdout - io.WriteString os.Stdout - Ou: - func Dial(network, address string) (Conn, error) - type Conn interface { [...] Write(b []byte) (n int, err error) [...] }

Lesson FAQs

What is Cap. 16 – Aplicações – 4. A interface Writer about?

- A interface writer do pacote io. - type Writer interface { Write(p []byte) (n int, err error) } - pkg os: func (f *File) Write(b []byte) (n int, err error) - pkg json: func NewEncoder(w io.Writer) *Encoder - "Println [

What key concepts are covered in this lesson?

The lesson covers go, golang, programacao, programar, programação.

What should I learn before Cap. 16 – Aplicações – 4. A interface Writer?

Review the previous lessons in Aprenda Go 🇧🇷, then use the transcript and key concepts on this page to fill any gaps.

How can I practice after this lesson?

Practice by applying the main concepts: go, golang, programacao, programar.

Does this lesson include a transcript?

Yes. The full transcript is visible on this page in indexable HTML sections.

Is this lesson free?

Yes. CourseHive lessons and courses are available to learn online for free.

Continue Learning

Course Hive

Continue this lesson in the app

Install CourseHive on Android or iOS to keep learning while you move.

Related Lessons

Related Courses

FAQs

Course Hive
Download CourseHive and keep learning anywhere
Get App