go-agent: github.com/newrelic/go-agent/v3/internal/crossagent Index | Files

package crossagent

import "github.com/newrelic/go-agent/v3/internal/crossagent"

Index

Package Files

crossagent.go

func FileMissing Uses

func FileMissing(name string) bool

FileMissing returns true if the cross agent test fixture does not exist.

func ReadDir Uses

func ReadDir(name string) ([]string, error)

ReadDir reads a directory relative to crossagent tests and returns an array of absolute filepaths of the files in that directory.

func ReadFile Uses

func ReadFile(name string) ([]byte, error)

ReadFile reads a file from the crossagent tests directory given as with ioutil.ReadFile.

func ReadJSON Uses

func ReadJSON(name string, v interface{}) error

ReadJSON takes the name of a file and parses it using JSON.Unmarshal into the interface given.

Package crossagent imports 5 packages (graph). Updated 2020-03-26. Refresh now. Tools for package owners.