...

Package util

import "edge-infra.dev/third_party/gopherage/pkg/util"
Overview
Index

Overview ▾

func DumpProfile

func DumpProfile(destination string, profile []*cover.Profile) error

DumpProfile dumps the profile to the given file destination. If the destination is "-", it instead writes to stdout.

func LoadProfile

func LoadProfile(origin string) ([]*cover.Profile, error)

LoadProfile loads a profile from the given filename. If the filename is "-", it instead reads from stdin.