github.com/oweisse/u-root@v0.0.0-20181109060735-d005ad25fef1/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 }