Documentation ¶
Index ¶
- func ArgToJsonEntry(arg string) (k string, v any, err error)
- func ArgsToJsonObject(args []string) (map[string]any, error)
- func Fatal(err error)
- func Fatalf(format string, v ...any)
- func FormatBytes(bytes uint64) string
- func GetAddr(cfg *config.Config) string
- func ListenAndServe(ctx context.Context, svr *http.Server)
- func MustGetwd() string
- func PrintCueStruct(v any)
- func Serve(ctx context.Context, l net.Listener, svr *http.Server)
- func Show(s string)
- func ShutdownOnInterrupt(ctx context.Context, svr *http.Server)
- func Warnf(format string, v ...any)
- type ParsedArgs
- type TableWriter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatBytes ¶
func PrintCueStruct ¶
func PrintCueStruct(v any)
Types ¶
type ParsedArgs ¶
func ParseArgs ¶
func ParseArgs(args []string) (*ParsedArgs, error)
func (*ParsedArgs) Dump ¶
func (pa *ParsedArgs) Dump() string
type TableWriter ¶
type TableWriter struct {
// contains filtered or unexported fields
}
func NewTableWriter ¶
func NewTableWriter(columns ...string) *TableWriter
func (*TableWriter) Flush ¶
func (w *TableWriter) Flush()
func (*TableWriter) WriteRow ¶
func (w *TableWriter) WriteRow(values ...string)
Click to show internal directories.
Click to hide internal directories.