read

package
v0.0.0-...-fcf7183 Latest Latest
Warning

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

Go to latest
Published: May 22, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const Eol = "\n"

Eol represents the end of line character.

Variables

This section is empty.

Functions

func Bytes

func Bytes(path string) []byte

Bytes read a file and return a slice of byte.

func JSON

func JSON(path string, i interface{})

JSON read a file and load the data in the interface.

func Read

func Read(path string, sep ...string) []int

Read read a file and return a slice of int, splitted with sep.

func String

func String(path string) string

String read a file and return a slice of string.

func Strings

func Strings(path string, sep ...string) []string

Strings read a file and return a slice of string, splitted with sep.

Types

This section is empty.

Jump to

Keyboard shortcuts

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