gh-pages
github-actions[bot] 2023-08-11 11:25:08 +00:00
parent cf20975227
commit ece421d77e
4 changed files with 6 additions and 8 deletions

View File

@ -176,9 +176,8 @@ func Sprintf(format string, args ...interface{}) string {
return buf.String()
}
</code></pre>
<p>Fprintf的前缀F表示文件File也表明格式化输出结果应该被写入第一个参数提供的文件中。在Printf函数中的第一个参数os.Stdout是<code>*os.File</code>类型在Sprintf函数中的第一个参数&amp;buf是一个指向可以写入字节的内存缓冲区然而它
并不是一个文件类型尽管它在某种意义上和文件类型相似。</p>
<p>即使Fprintf函数中的第一个参数也不是一个文件类型。它是io.Writer类型这是一个接口类型定义如下</p>
<p>Fprintf的前缀F表示文件File也表明格式化输出结果应该被写入第一个参数提供的文件中。在Printf函数中的第一个参数os.Stdout是<code>*os.File</code>类型在Sprintf函数中的第一个参数&amp;buf是一个指向可以写入字节的内存缓冲区。然而它并不是一个文件类型尽管它在某种意义上和文件类型相似。</p>
<p>即使是Fprintf函数中的第一个参数它也不是一个文件类型。它是io.Writer类型这是一个接口类型定义如下</p>
<pre><code class="language-go">package io
// Writer is the interface that wraps the basic Write method.

View File

@ -5094,9 +5094,8 @@ func Sprintf(format string, args ...interface{}) string {
return buf.String()
}
</code></pre>
<p>Fprintf的前缀F表示文件File也表明格式化输出结果应该被写入第一个参数提供的文件中。在Printf函数中的第一个参数os.Stdout是<code>*os.File</code>类型在Sprintf函数中的第一个参数&amp;buf是一个指向可以写入字节的内存缓冲区然而它
并不是一个文件类型尽管它在某种意义上和文件类型相似。</p>
<p>即使Fprintf函数中的第一个参数也不是一个文件类型。它是io.Writer类型这是一个接口类型定义如下</p>
<p>Fprintf的前缀F表示文件File也表明格式化输出结果应该被写入第一个参数提供的文件中。在Printf函数中的第一个参数os.Stdout是<code>*os.File</code>类型在Sprintf函数中的第一个参数&amp;buf是一个指向可以写入字节的内存缓冲区。然而它并不是一个文件类型尽管它在某种意义上和文件类型相似。</p>
<p>即使是Fprintf函数中的第一个参数它也不是一个文件类型。它是io.Writer类型这是一个接口类型定义如下</p>
<pre><code class="language-go">package io
// Writer is the interface that wraps the basic Write method.

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long