util

package
v0.0.0-...-df0a4e3 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2020 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Date

func Date(t time.Time) string

func HomeDir

func HomeDir() string

func ReadStdin

func ReadStdin(stdin io.Reader) string

func UnixNanoStr

func UnixNanoStr(t time.Time) string

Types

type TemplateCsv

type TemplateCsv struct {
	Header []string
	Record string
}

Recordは動的に置換したいため配列ではなく文字列にする

func (*TemplateCsv) SetTemplateCsv

func (tc *TemplateCsv) SetTemplateCsv(templateCsvPath string)

テンプレートCSVを構造体にセット

func (*TemplateCsv) WriteHeader

func (tc *TemplateCsv) WriteHeader(resultCsvPath string)

出力用CSVにヘッダーを書き込む

Jump to

Keyboard shortcuts

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