![]() | |
---|---|
Software: Apache. PHP/5.4.45 uname -a: Linux webm056.cluster010.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue uid=243112(mycochar) gid=100(users) groups=100(users) Safe-mode: OFF (not secure) /home/mycochar/www/image/photo/go/src/cmd/go/testdata/script/ drwxr-xr-x |
Viewing file: Select action/file-type: env GO111MODULE=on cd foo # Testing an explicit source file should use the same import visibility as the # package in the same directory. go list -test -deps go list -test -deps foo_test.go # If the file is inside the main module's vendor directory, it should have # visibility based on the vendor-relative import path. mkdir vendor/example.com/foo cp foo_test.go vendor/example.com/foo go list -test -deps vendor/example.com/foo/foo_test.go # If the file is outside the main module entirely, it should be treated as outside. cp foo_test.go ../foo_test.go ! go list -test -deps ../foo_test.go stderr 'use of internal package' -- foo/go.mod -- module example.com/foo go 1.12 require example.com/internal v0.0.0 replace example.com/internal => ../internal -- foo/internal.go -- package foo import _ "example.com/internal" -- foo/foo_test.go -- package foo_test import ( "testing" "example.com/internal" ) func TestHacksEnabled(t *testing.T) { if !internal.Hacks { t.Fatal("hacks not enabled") } } -- internal/go.mod -- module example.com/internal -- internal/internal.go -- package internal const Hacks = true |
Useful Commands
|
Php Safe-Mode Bypass (Read Files)
|
--[ x2300 Locus7Shell v. 1.0a beta Modded by #!physx^ | www.LOCUS7S.com | Generation time: 0.0063 ]-- |