util

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2015 License: MIT Imports: 1 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddPrefix

func AddPrefix(inSlice []string, prefix string) []string

AddPrefix takes a string slice and returns a new string slice with the supplied prefix inserted before every string in the original slice.

func ExtractFileExtension

func ExtractFileExtension(filename string) string

ExtractFileExtension extracts the extension from a filename. This is defined as the remainder of the string after the last '.'.

func JoinStringSlices

func JoinStringSlices(slices ...[]string) []string

JoinStringSlices takes an arbitrary number of string slices and concatenates them in the order supplied.

Types

This section is empty.

Jump to

Keyboard shortcuts

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