flags

package
v0.0.0-...-748ecea Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File struct {
	DefaultPath string
	MaxSize     int64
	// contains filtered or unexported fields
}

File for getting.

func (*File) Read

func (f *File) Read(b []byte) (n int, err error)

Read implements io.ReadCloser.

func (*File) Set

func (f *File) Set(s string) error

Set implements flag.Value.

func (*File) String

func (f *File) String() string

String implements flag.Value.

type Level

type Level struct {
	Level slog.Level
}

Level for setting level by flag.

func (*Level) Set

func (l *Level) Set(s string) error

Set implements flag.Value.

func (*Level) String

func (l *Level) String() string

String implements flag.Value.

Jump to

Keyboard shortcuts

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