gopacket: github.com/google/gopacket/examples/util Index | Files

package util

import "github.com/google/gopacket/examples/util"

Package util provides shared utilities for all gopacket examples.

Index

Package Files

util.go

func Run Uses

func Run() func()

Run starts up stuff at the beginning of a main function, and returns a function to defer until the function completes. It should be used like this:

func main() {
  defer util.Run()()
  ... stuff ...
}

Package util imports 4 packages (graph) and is imported by 43 packages. Updated 2016-07-19. Refresh now. Tools for package owners.