_interface

package
v0.0.0-...-745f953 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Buffer

type Buffer struct {
	// contains filtered or unexported fields
}

func (*Buffer) Write

func (buf *Buffer) Write(b []byte) (n int, err error)

Write 向 Buffer 中写入bytes 在这个方法里,我实现了向 Buffer 中写入字节的功能 但是在无意间,我实现了 io.Writer 若我这时,想要查看那些地方引用了 Write 方法 会找出一堆 io.Writer.Write 方法的引用,而无法准确的找出对于 Buffer.Write 的引用 这是隐式实现机制的一个弊端,而非IDE设计不完善的锅

Jump to

Keyboard shortcuts

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