formatter

package
v0.0.0-...-ccbf4c7 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LocalTZ = time.Local

Functions

func FormatDate

func FormatDate(date time.Time) string

func FormatDateAndDuration

func FormatDateAndDuration(date time.Time, duration *time.Duration) string

func FormatDuration

func FormatDuration(duration *time.Duration) string

func FormatStamp

func FormatStamp(date time.Time) string

func JSON

func JSON(writer io.Writer, data interface{}) error

func Local

func Local(date time.Time) time.Time

func StreamJSONResponse

func StreamJSONResponse(w io.Writer, response *http.Response) error

StreamJSONResponse supports the JSON streaming format from the tsuru API.

Types

This section is empty.

Jump to

Keyboard shortcuts

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