brf

package module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2019 License: MIT Imports: 2 Imported by: 4

README

brf

Go Report Card GoDoc

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

After returns the substring following a matching substring.

func ExcludePrefix

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

ExcludePrefix returns a string slice, without the excluded prefix strings.

func ExcludeStrings

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

ExcludeStrings returns a string slice, without the excluded strings.

func FirstLine added in v0.1.0

func FirstLine(s string) string

FirstLine returns the first line from a multi line string.

func LowerKebab

func LowerKebab(s string) string

LowerKebab returns a string in 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 string slice with no duplicate entries.

func OnlyPrefix

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

OnlyPrefix returns a string slice, with only matching prefix strings.

func Summary

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

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

func Trim

func Trim(s string) string

Trim returns a string without trailing spaces and line breaks.

Types

This section is empty.

Jump to

Keyboard shortcuts

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