$89 GRAYBYTE WORDPRESS FILE MANAGER $17

SERVER : vnpttt-amd7f72-h1.vietnix.vn #1 SMP Fri May 24 12:42:50 UTC 2024
SERVER IP : 103.200.23.149 | ADMIN IP 216.73.216.22
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/lib/golang/src/encoding/json/

HOME
Current File : /lib/golang/src/encoding/json//tags.go
// Copyright 2011 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.

//go:build !goexperiment.jsonv2

package json

import (
	"strings"
)

// tagOptions is the string following a comma in a struct field's "json"
// tag, or the empty string. It does not include the leading comma.
type tagOptions string

// parseTag splits a struct field's json tag into its name and
// comma-separated options.
func parseTag(tag string) (string, tagOptions) {
	tag, opt, _ := strings.Cut(tag, ",")
	return tag, tagOptions(opt)
}

// Contains reports whether a comma-separated list of options
// contains a particular substr flag. substr must be surrounded by a
// string boundary or commas.
func (o tagOptions) Contains(optionName string) bool {
	if len(o) == 0 {
		return false
	}
	s := string(o)
	for s != "" {
		var name string
		name, s, _ = strings.Cut(s, ",")
		if name == optionName {
			return true
		}
	}
	return false
}

Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
16 Dec 2025 9.30 PM
root / root
0755
internal
--
16 Dec 2025 9.30 PM
root / root
0755
jsontext
--
16 Dec 2025 9.30 PM
root / root
0755
v2
--
16 Dec 2025 9.30 PM
root / root
0755
decode.go
35.482 KB
4 Dec 2025 6.06 PM
root / root
0644
encode.go
39.913 KB
4 Dec 2025 6.06 PM
root / root
0644
fold.go
1.096 KB
4 Dec 2025 6.06 PM
root / root
0644
indent.go
5.394 KB
4 Dec 2025 6.06 PM
root / root
0644
scanner.go
16.181 KB
4 Dec 2025 6.06 PM
root / root
0644
stream.go
12.947 KB
4 Dec 2025 6.06 PM
root / root
0644
tables.go
4.192 KB
4 Dec 2025 6.06 PM
root / root
0644
tags.go
0.981 KB
4 Dec 2025 6.06 PM
root / root
0644
v2_decode.go
8.626 KB
4 Dec 2025 6.06 PM
root / root
0644
v2_encode.go
9.581 KB
4 Dec 2025 6.06 PM
root / root
0644
v2_indent.go
4.64 KB
4 Dec 2025 6.06 PM
root / root
0644
v2_inject.go
5.008 KB
4 Dec 2025 6.06 PM
root / root
0644
v2_options.go
24.666 KB
4 Dec 2025 6.06 PM
root / root
0644
v2_scanner.go
2.646 KB
4 Dec 2025 6.06 PM
root / root
0644
v2_stream.go
6.74 KB
4 Dec 2025 6.06 PM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF