gopkg.in/essentialkaos/ek.v3@v3.5.1/system/process/examples_test.go (about)

     1  package process
     2  
     3  // ////////////////////////////////////////////////////////////////////////////////// //
     4  //                                                                                    //
     5  //                     Copyright (c) 2009-2016 Essential Kaos                         //
     6  //      Essential Kaos Open Source License <http://essentialkaos.com/ekol?en>         //
     7  //                                                                                    //
     8  // ////////////////////////////////////////////////////////////////////////////////// //
     9  
    10  func Example_getTree() {
    11  	process, err := GetTree()
    12  
    13  	if err != nil {
    14  		return
    15  	}
    16  
    17  	// process is top process in tree
    18  }
    19  
    20  func Example_getList() {
    21  	processes, err := GetList()
    22  
    23  	if err != nil {
    24  		return
    25  	}
    26  
    27  	// processes is slice with info about all active processes
    28  }