github.com/mem/u-root@v2.0.1-0.20181004165302-9b18b4636a33+incompatible/examples/sos/example_sos.go (about)

     1  // Copyright 2018 the u-root Authors. All rights reserved
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  package main
     6  
     7  import (
     8  	"log"
     9  )
    10  
    11  func main() {
    12  	// Build a new example service
    13  	service, err := NewExampleService()
    14  	if err != nil {
    15  		log.Fatal(err)
    16  	}
    17  	// Build a new example server with this service, then start it
    18  	NewExampleServer(service).Start()
    19  }