
* service/dap: Add error checking and tests for buildFlags in launch requests * Clarify with comments and better naming * Undo redundant support.go changes * Undo redundant support.go changes (attempt #2) Co-authored-by: Polina Sokolova <polinasok@users.noreply.github.com>
15 lines
235 B
Go
15 lines
235 B
Go
package main
|
|
|
|
import "fmt"
|
|
|
|
// To be set via
|
|
// go build -ldflags '-X main.Hello=World'
|
|
var Hello string
|
|
|
|
func main() {
|
|
if len(Hello) < 1 {
|
|
panic("global main.Hello not set via build flags")
|
|
}
|
|
fmt.Printf("Hello %s!\n", Hello)
|
|
}
|