util

package
v0.0.0-...-f1a69a6 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrURLHostEmpty = errors.New("URLのホスト部が空です")
)

Functions

func FormatISO8601

func FormatISO8601(t time.Time) string

FormatISO8601 はISO8601形式で時刻をフォーマットします

func MeasureScenario

func MeasureScenario(ctx context.Context, scenarioFn func(ctx context.Context) error) (time.Duration, error)

MeasureScenario はシナリオの経過時間を計測します

func ParseISO8601

func ParseISO8601(t string) (time.Time, error)

ParseISO8601 はISO8601形式で時刻をパースします

func ParseURL

func ParseURL(urlStr string) (*url.URL, error)

func RandRangeIntn

func RandRangeIntn(min, max int) int

func SecureRandomStr

func SecureRandomStr(b int) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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