Documentation
¶
Overview ¶
Copyright 2025 The Joe-cli Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
Copyright 2025 The Joe-cli Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
Index ¶
- func ExpandColors(k string) any
- func ExpandEnv(s string) any
- func ExpandGlobals(k string) any
- func Fprint(w io.Writer, pattern *Pattern, e Expander) (count int, err error)
- func Unknown(s string) any
- func UnknownToken(tok string) error
- type Expander
- type HTTPMethod
- type HTTPStatus
- type Pattern
- type Renderer
- type Syntax
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExpandColors ¶
func ExpandGlobals ¶
func UnknownToken ¶
Types ¶
type Expander ¶
Expander converts the given string key into its variable expansion
func ComposeExpanders ¶
type HTTPMethod ¶
type HTTPMethod string
HTTPMethod provides a representation of an HTTP method that supports terminal formatting
func (HTTPMethod) Color ¶
func (m HTTPMethod) Color() string
func (HTTPMethod) String ¶
func (m HTTPMethod) String() string
type HTTPStatus ¶
type HTTPStatus int
HTTPStatus provides a representation of an HTTP status code that supports terminal formatting
func (HTTPStatus) Code ¶
func (s HTTPStatus) Code() int
func (HTTPStatus) Color ¶
func (s HTTPStatus) Color() string
func (HTTPStatus) Message ¶
func (s HTTPStatus) Message() string
func (HTTPStatus) String ¶
func (s HTTPStatus) String() string
type Pattern ¶
type Pattern struct {
// contains filtered or unexported fields
}
func CompilePattern ¶
type Renderer ¶
Renderer is a specialized writer that understands writing to multiple files and the corresponding variable support
func NewRenderer ¶
type Syntax ¶ added in v0.5.4
type Syntax int
const ( // SyntaxDefault indicates that the expression syntax uses the // form <name>[':' <format>]. That is, an optional format string is allowed // to control the output. SyntaxDefault Syntax = iota // SyntaxRecursive causes recursive expression evaluation to // be allowed. For example, the expression ${VISUAL:${EDITOR}} // would evaluate both environment variables, falling back to EDITOR. SyntaxRecursive )