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.1
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 /
go /
doc /
[ HOME SHELL ]
Name
Size
Permission
Action
testdata
[ DIR ]
drwxr-xr-x
Makefile
246
B
-rw-r--r--
comment.go
12.4
KB
-rw-r--r--
comment_test.go
6.93
KB
-rw-r--r--
doc.go
7.37
KB
-rw-r--r--
doc_test.go
3.51
KB
-rw-r--r--
example.go
15.43
KB
-rw-r--r--
example_test.go
15.12
KB
-rw-r--r--
exports.go
7.76
KB
-rw-r--r--
filter.go
2.11
KB
-rw-r--r--
headscan.go
2.56
KB
-rw-r--r--
reader.go
24.86
KB
-rw-r--r--
synopsis.go
1.98
KB
-rw-r--r--
synopsis_test.go
1.83
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : synopsis.go
// Copyright 2012 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 doc import ( "strings" "unicode" ) // firstSentenceLen returns the length of the first sentence in s. // The sentence ends after the first period followed by space and // not preceded by exactly one uppercase letter. // func firstSentenceLen(s string) int { var ppp, pp, p rune for i, q := range s { if q == '\n' || q == '\r' || q == '\t' { q = ' ' } if q == ' ' && p == '.' && (!unicode.IsUpper(pp) || unicode.IsUpper(ppp)) { return i } if p == '。' || p == '.' { return i } ppp, pp, p = pp, p, q } return len(s) } const ( keepNL = 1 << iota ) // clean replaces each sequence of space, \n, \r, or \t characters // with a single space and removes any trailing and leading spaces. // If the keepNL flag is set, newline characters are passed through // instead of being change to spaces. func clean(s string, flags int) string { var b []byte p := byte(' ') for i := 0; i < len(s); i++ { q := s[i] if (flags&keepNL) == 0 && q == '\n' || q == '\r' || q == '\t' { q = ' ' } if q != ' ' || p != ' ' { b = append(b, q) p = q } } // remove trailing blank, if any if n := len(b); n > 0 && p == ' ' { b = b[0 : n-1] } return string(b) } // Synopsis returns a cleaned version of the first sentence in s. // That sentence ends after the first period followed by space and // not preceded by exactly one uppercase letter. The result string // has no \n, \r, or \t characters and uses only single spaces between // words. If s starts with any of the IllegalPrefixes, the result // is the empty string. // func Synopsis(s string) string { s = clean(s[0:firstSentenceLen(s)], 0) for _, prefix := range IllegalPrefixes { if strings.HasPrefix(strings.ToLower(s), prefix) { return "" } } s = convertQuotes(s) return s } var IllegalPrefixes = []string{ "copyright", "all rights", "author", }
Close