Help us shape the future of Go! Take the 2026 Go Developer Survey

brf

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2019 License: MIT Imports: 3 Imported by: 4

README

Summary

Package brf collects functions with brief output.

Functions in package brf filter, reduce or transform strings and string slices.

Projects

  • git-in-sync: Keep all of your git repos in sync across multiple computers
  • js2x: Convert Javascript to Markdown and beyond with js2x
  • wrangler: Wrangle up macOS user accounts and groups

Documentation

Overview

Package brf collects functions with brief output.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func After added in v0.0.4

func After(s string, m string) (string, error)

After returns the substring following a matching substring.

func ExcludePrefix

func ExcludePrefix(esl []string, pfx string) (sl []string)

ExcludePrefix returns a reduced string slice, excluding entries with the prefix.

func ExcludeStrings

func ExcludeStrings(msl []string, esl []string) (sl []string)

ExcludeStrings returns a reduced string slice, without the entries from a second slice.

func FirstLine added in v0.1.0

func FirstLine(s string) (string, error)

FirstLine returns the first line from a multi line string.

func LowerKebab

func LowerKebab(s string) string

LowerKebab converts a string to lower kebab case.

func NoBlanks

func NoBlanks(bsl []string) (sl []string)

NoBlanks returns a string slice with no blank entries.

func NoDuplicates added in v0.1.0

func NoDuplicates(dsl []string) (sl []string)

NoDuplicates returns a reduced string slice with no duplicate entries.

func OnlyPrefix

func OnlyPrefix(psl []string, pfx string) (sl []string)

OnlyPrefix returns a reduced string slice, with only entries with the prefix.

func Summary

func Summary(sl []string, l int) string

Summary returns a set length string that summarizes the contents of a string slice.

func Trim

func Trim(s string) string

Trim removes trailing spaces and line breaks from a string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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