detect dependencies from golang files
This commit is contained in:
parent
caafe3dcb6
commit
23dc803446
3 changed files with 157 additions and 0 deletions
24
tests/samples/codefiles/go.go
Normal file
24
tests/samples/codefiles/go.go
Normal file
|
@ -0,0 +1,24 @@
|
|||
package main
|
||||
|
||||
// list every possible way of importing to try and break dependency detection
|
||||
// http://learngowith.me/alternate-ways-of-importing-packages/
|
||||
|
||||
import "fmt"
|
||||
import "compress/gzip"
|
||||
import "github.com/golang/example/stringutil"
|
||||
import (
|
||||
"log"
|
||||
"os"
|
||||
)
|
||||
import newname "oldname"
|
||||
import . "direct"
|
||||
import _ "supress"
|
||||
import (
|
||||
"foobar"
|
||||
. "math"
|
||||
_ "image/gif"
|
||||
)
|
||||
|
||||
func main() {
|
||||
fmt.Println("Hello, World!")
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue