utils

package
v0.0.0-...-9a26578 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2017 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileExists

func FileExists(path string) (bool, error)

FileExists returns true if file exists

func SplitAndTrim

func SplitAndTrim(s, sep string) []string

SplitAndTrim slices s into all substrings separated by sep and returns a slice of the substrings between those separators after trimming spaces

func TypeByExtension

func TypeByExtension(ext string) string

TypeByExtension returns the mime type for a given file extension source: https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Complete_list_of_MIME_types

Types

This section is empty.

Jump to

Keyboard shortcuts

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