Linux vmi284606.contaboserver.net 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
Apache/2.4.57 (Ubuntu)
: 167.86.127.34 | : 216.73.217.31
Cant Read [ /etc/named.conf ]
7.2.24-0ubuntu0.18.04.17
root
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
local /
go /
src /
cmd /
compile /
internal /
syntax /
[ HOME SHELL ]
Name
Size
Permission
Action
testdata
[ DIR ]
drwxr-xr-x
branches.go
8.73
KB
-rw-r--r--
dumper.go
4.5
KB
-rw-r--r--
dumper_test.go
519
B
-rw-r--r--
error_test.go
4.72
KB
-rw-r--r--
nodes.go
8.42
KB
-rw-r--r--
nodes_test.go
8.69
KB
-rw-r--r--
operator_string.go
508
B
-rw-r--r--
parser.go
46.93
KB
-rw-r--r--
parser_test.go
10.47
KB
-rw-r--r--
pos.go
4.11
KB
-rw-r--r--
printer.go
18.89
KB
-rw-r--r--
printer_test.go
1.04
KB
-rw-r--r--
scanner.go
16.7
KB
-rw-r--r--
scanner_test.go
19.81
KB
-rw-r--r--
source.go
5.7
KB
-rw-r--r--
syntax.go
2.42
KB
-rw-r--r--
token_string.go
736
B
-rw-r--r--
tokens.go
2.6
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : syntax.go
// Copyright 2016 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package syntax import ( "fmt" "io" "os" ) // Mode describes the parser mode. type Mode uint // Modes supported by the parser. const ( CheckBranches Mode = 1 << iota // check correct use of labels, break, continue, and goto statements ) // Error describes a syntax error. Error implements the error interface. type Error struct { Pos Pos Msg string } func (err Error) Error() string { return fmt.Sprintf("%s: %s", err.Pos, err.Msg) } var _ error = Error{} // verify that Error implements error // An ErrorHandler is called for each error encountered reading a .go file. type ErrorHandler func(err error) // A Pragma value is a set of flags that augment a function or // type declaration. Callers may assign meaning to the flags as // appropriate. type Pragma uint16 // A PragmaHandler is used to process //go: directives as // they're scanned. The returned Pragma value will be unioned into the // next FuncDecl node. type PragmaHandler func(pos Pos, text string) Pragma // Parse parses a single Go source file from src and returns the corresponding // syntax tree. If there are errors, Parse will return the first error found, // and a possibly partially constructed syntax tree, or nil. // // If errh != nil, it is called with each error encountered, and Parse will // process as much source as possible. In this case, the returned syntax tree // is only nil if no correct package clause was found. // If errh is nil, Parse will terminate immediately upon encountering the first // error, and the returned syntax tree is nil. // // If pragh != nil, it is called with each pragma encountered. // func Parse(base *PosBase, src io.Reader, errh ErrorHandler, pragh PragmaHandler, mode Mode) (_ *File, first error) { defer func() { if p := recover(); p != nil { if err, ok := p.(Error); ok { first = err return } panic(p) } }() var p parser p.init(base, src, errh, pragh, mode) p.next() return p.fileOrNil(), p.first } // ParseFile behaves like Parse but it reads the source from the named file. func ParseFile(filename string, errh ErrorHandler, pragh PragmaHandler, mode Mode) (*File, error) { f, err := os.Open(filename) if err != nil { if errh != nil { errh(err) } return nil, err } defer f.Close() return Parse(NewFileBase(filename), f, errh, pragh, mode) }
Close