srcutil

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package srcutil provides utilities for working with files under go module.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadFile

func LoadFile(path string) (string, error)

LoadFile reads a file in the repo given its relative path to the root of module and returns a string.

func Path

func Path(path string) string

Path returns the path to a file in the repo given its relative path to the root of the module.

func Read

func Read(path string) ([]byte, error)

Read reads a file in the repo given its relative path to the root of module.

Types

This section is empty.

Jump to

Keyboard shortcuts

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