logtime

package
v0.1.12 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2026 License: MIT Imports: 2 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package logtime is how the proxy writes a time: in UTC, with the zone marked, as RFC 3339. A Go process reads the Mac's time zone once, when it starts, so a local time written after the Mac changes zone would be wrong. Status and the menu run in the reader's process and show local time.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Format

func Format(at time.Time) string

Format writes at as the proxy log does, for example 2026-11-07T22:00:00Z.

Types

type StampedLines

type StampedLines struct{ Output io.Writer }

StampedLines starts each line the standard logger writes with the time it was written. Set the logger's flags to 0 so it adds no timestamp of its own.

func (StampedLines) Write

func (stamped StampedLines) Write(line []byte) (int, error)

Jump to

Keyboard shortcuts

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