verbo

package module
v0.0.0-...-b9c8de8 Latest Latest
Warning

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

Go to latest
Published: May 19, 2016 License: MIT Imports: 8 Imported by: 0

README

verbo

Build Status

A collection of string utilities for GO. This project is pretty much inspired on underscore.string project.

Example

import (
  "fmt"
  verbo "github.com/ararog/verbo"
)

str := verbo.LeftPad("1", 8, "0")
fmt.Printf("Output: %s\n", str)

Contributing

You can contribute by creating new testcases and fixing code of tests that are currently failing, the functions Chop, Humanize, Levenstein, Pad, Slugify, Underscored and Words are not fully functional and requires some additional fixes.

Feel free to fork and create a PR!

Questions

Feel free to ask questions on stackoverflow using tag "verbo".

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Camelize

func Camelize(str string, decapitalize bool) string

func Capitalize

func Capitalize(str string, lowercaseRest bool) string

func Chop

func Chop(str string, step int) []string

func Classify

func Classify(str string) string

func Clean

func Clean(str string) string

func CleanDiacritics

func CleanDiacritics(str string) string

func Dasherize

func Dasherize(str string) string

func Decapitalize

func Decapitalize(str string) string

func Humanize

func Humanize(str string) string

func IsBlank

func IsBlank(str string) bool

func LeftPad

func LeftPad(str string, length int, padStr string) string

func Levenshtein

func Levenshtein(str1, str2 string) int

func Lines

func Lines(str string) []string

func Pad

func Pad(str string, length int, padStr, padtype string) string

func Pred

func Pred(str string) string

func Repeat

func Repeat(str string, qty int, separator string) string

func Reverse

func Reverse(str string) string

func RightPad

func RightPad(str string, length int, padStr string) string

func Slugify

func Slugify(str string) string

func Succ

func Succ(str string) string

func SwapCase

func SwapCase(str string) string

func Titleize

func Titleize(str string) string

func Trim

func Trim(str, characters string) string

func Truncate

func Truncate(str string, length int, truncateStr string) string

func Underscored

func Underscored(str string) string

func Unquote

func Unquote(str, quoteChar string) string

func Words

func Words(str, delimiter string) []string

Types

This section is empty.

Jump to

Keyboard shortcuts

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