You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
560 B
Go
26 lines
560 B
Go
// Copyright (c) 2020, The Garble Authors.
|
|
// See LICENSE for licensing information.
|
|
|
|
// A simple main package with some names to obfuscate.
|
|
// With relatively heavy dependencies, as benchmark iterations use the build cache.
|
|
// We also use a mix of funcs, methods, fields, literals, etc.
|
|
|
|
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"net/http"
|
|
)
|
|
|
|
var globalVar = "global value"
|
|
|
|
func globalFunc() { fmt.Println("global func body") }
|
|
|
|
func main() {
|
|
fmt.Println(globalVar)
|
|
globalFunc()
|
|
http.ListenAndServe("", nil)
|
|
client := http.Client{Transport: nil}
|
|
client.Do(nil)
|
|
}
|