ex01

command
v0.0.0-...-c93e153 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2018 License: MIT Imports: 3 Imported by: 0

README

Q2.1: ファイルに対するフォーマット出力

2.4.6「フォーマットしてデータをio.Writerに書き出す」で説明したように、fmt.Fprintf(writer, フォーマット文字列, 値...)io.Writerに数値や文字列を出力できます。fmt.Fprintfでは他の言語と同じように、"%d"が数値の表示に、"%s"が文字列の表示に、"%f"が浮動小数点の表示に使えます。 これらを使って、数字や小数、文字列をファイルに書き出してみましょう。

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