gopacket: Index | Files

package util

import ""

Package util provides shared utilities for all gopacket examples.


Package Files


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 136 packages. Updated 2016-07-19. Refresh now. Tools for package owners.