OXIESEC PANEL
- Current Dir:
/
/
opt
/
golang
/
1.22.0
/
src
/
mime
Server IP: 2a02:4780:11:1084:0:327f:3464:10
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
02/02/2024 06:09:55 PM
rwxr-xr-x
📄
encodedword.go
9.98 KB
02/02/2024 06:09:55 PM
rw-r--r--
📄
encodedword_test.go
6.98 KB
02/02/2024 06:09:55 PM
rw-r--r--
📄
example_test.go
2.95 KB
02/02/2024 06:09:55 PM
rw-r--r--
📄
grammar.go
828 bytes
02/02/2024 06:09:55 PM
rw-r--r--
📄
mediatype.go
9.76 KB
02/02/2024 06:09:55 PM
rw-r--r--
📄
mediatype_test.go
18.06 KB
02/02/2024 06:09:55 PM
rw-r--r--
📁
multipart
-
02/02/2024 06:09:55 PM
rwxr-xr-x
📁
quotedprintable
-
02/02/2024 06:09:55 PM
rwxr-xr-x
📁
testdata
-
02/02/2024 06:09:55 PM
rwxr-xr-x
📄
type.go
5.16 KB
02/02/2024 06:09:55 PM
rw-r--r--
📄
type_dragonfly.go
250 bytes
02/02/2024 06:09:55 PM
rw-r--r--
📄
type_freebsd.go
250 bytes
02/02/2024 06:09:55 PM
rw-r--r--
📄
type_openbsd.go
251 bytes
02/02/2024 06:09:55 PM
rw-r--r--
📄
type_plan9.go
1.04 KB
02/02/2024 06:09:55 PM
rw-r--r--
📄
type_test.go
4.9 KB
02/02/2024 06:09:55 PM
rw-r--r--
📄
type_unix.go
2.98 KB
02/02/2024 06:09:55 PM
rw-r--r--
📄
type_unix_test.go
945 bytes
02/02/2024 06:09:55 PM
rw-r--r--
📄
type_windows.go
1.22 KB
02/02/2024 06:09:55 PM
rw-r--r--
Editing: grammar.go
Close
// Copyright 2010 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 mime import ( "strings" ) // isTSpecial reports whether rune is in 'tspecials' as defined by RFC // 1521 and RFC 2045. func isTSpecial(r rune) bool { return strings.ContainsRune(`()<>@,;:\"/[]?=`, r) } // isTokenChar reports whether rune is in 'token' as defined by RFC // 1521 and RFC 2045. func isTokenChar(r rune) bool { // token := 1*<any (US-ASCII) CHAR except SPACE, CTLs, // or tspecials> return r > 0x20 && r < 0x7f && !isTSpecial(r) } // isToken reports whether s is a 'token' as defined by RFC 1521 // and RFC 2045. func isToken(s string) bool { if s == "" { return false } return strings.IndexFunc(s, isNotTokenChar) < 0 }