parse

package
v0.0.0-...-9687f63 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package parse contains string parsing helper functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bytes

func Bytes(s string) ([]byte, error)

Bytes returns `[]byte(s), nil`.

func Digits

func Digits(s string) ([]int, error)

Digits converts a string of decimal digits (0-9) into `[]int`, where each element is the value of a digit.

func Fields

func Fields(s string) ([]string, error)

Fields returns `strings.Fields(s), nil`.

func Ints

func Ints(s string) ([]int, error)

Ints converts whitespace-separated ints into `[]int`.

func Runes

func Runes(s string) ([]rune, error)

Runes returns `[]rune(s), nil`.

Types

This section is empty.

Jump to

Keyboard shortcuts

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