value

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2025 License: BSD-3-Clause Imports: 14 Imported by: 0

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.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JSON

func JSON(v any) flag.Getter

JSON wraps a pointer to a value which will be marshalled from files as JSON. The value can't be used directly from the command line unless it also implements Value.Set or ValueReader.SetData, which the value must define. Using JSON from the command line would be cumbersome.

func ParseByteLength

func ParseByteLength(s string) (int, error)

ParseByteLength from a string

Types

type ByteLength

type ByteLength int

ByteLength represents number of bytes

func (*ByteLength) UnmarshalText

func (b *ByteLength) UnmarshalText(data []byte) error

type Hex

type Hex int

Hex represents an integer that parses from the hex syntax

func (Hex) String

func (h Hex) String() string

func (*Hex) UnmarshalText

func (h *Hex) UnmarshalText(d []byte) error

type Octal

type Octal int

Octal represents an integer that parses from the octal syntax

func (Octal) String

func (h Octal) String() string

func (*Octal) UnmarshalText

func (h *Octal) UnmarshalText(d []byte) error

Jump to

Keyboard shortcuts

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