$70 GRAYBYTE WORDPRESS FILE MANAGER $70

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/strconv/

HOME
Current File : /lib/golang/src/strconv//atob.go
// Copyright 2009 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 strconv

// ParseBool returns the boolean value represented by the string.
// It accepts 1, t, T, TRUE, true, True, 0, f, F, FALSE, false, False.
// Any other value returns an error.
func ParseBool(str string) (bool, error) {
	switch str {
	case "1", "t", "T", "true", "TRUE", "True":
		return true, nil
	case "0", "f", "F", "false", "FALSE", "False":
		return false, nil
	}
	return false, syntaxError("ParseBool", str)
}

// FormatBool returns "true" or "false" according to the value of b.
func FormatBool(b bool) string {
	if b {
		return "true"
	}
	return "false"
}

// AppendBool appends "true" or "false", according to the value of b,
// to dst and returns the extended buffer.
func AppendBool(dst []byte, b bool) []byte {
	if b {
		return append(dst, "true"...)
	}
	return append(dst, "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
atob.go
0.951 KB
4 Dec 2025 6.06 PM
root / root
0644
atoc.go
3.075 KB
4 Dec 2025 6.06 PM
root / root
0644
atof.go
15.849 KB
4 Dec 2025 6.06 PM
root / root
0644
atoi.go
8.291 KB
4 Dec 2025 6.06 PM
root / root
0644
bytealg.go
0.38 KB
4 Dec 2025 6.06 PM
root / root
0644
bytealg_bootstrap.go
0.392 KB
4 Dec 2025 6.06 PM
root / root
0644
ctoa.go
1.007 KB
4 Dec 2025 6.06 PM
root / root
0644
decimal.go
11.034 KB
4 Dec 2025 6.06 PM
root / root
0644
doc.go
1.911 KB
4 Dec 2025 6.06 PM
root / root
0644
eisel_lemire.go
41.392 KB
4 Dec 2025 6.06 PM
root / root
0644
ftoa.go
14.026 KB
4 Dec 2025 6.06 PM
root / root
0644
ftoaryu.go
15.66 KB
4 Dec 2025 6.06 PM
root / root
0644
isprint.go
11.547 KB
4 Dec 2025 6.06 PM
root / root
0644
itoa.go
4.875 KB
4 Dec 2025 6.06 PM
root / root
0644
makeisprint.go
4.287 KB
4 Dec 2025 6.06 PM
root / root
0644
quote.go
16.596 KB
4 Dec 2025 6.06 PM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF