Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/border/golang-china
/ functions
Functions
8,676 in github.com/border/golang-china
⨍
Functions
8,676
◇
Types & classes
2,265
↓ 2 callers
Function
Atof32
Atof32 converts the string s to a 32-bit floating-point number. If s is well-formed and near a valid floating point number, Atof32 returns the neares
pkg/strconv/atof.go:322
↓ 2 callers
Function
Atof64
Atof64 converts the string s to a 64-bit floating-point number. Except for the type of its result, its definition is the same as that of Atof32.
pkg/strconv/atof.go:343
↓ 2 callers
Function
Atoui
Atoui is like Atoui64 but returns its result as a uint.
pkg/strconv/atoi.go:175
↓ 2 callers
Function
Atoui64
Atoui64 interprets a string s as a decimal number and returns the corresponding value n. Atoui64 returns err == os.EINVAL if s is empty or contains i
pkg/strconv/atoi.go:127
↓ 2 callers
Method
Back
Back returns the last element in the list.
pkg/container/list/list.go:50
↓ 2 callers
Function
Btoi64
Btoi64 is like Btoui64 but allows signed numbers and returns its result in an int64.
pkg/strconv/atoi.go:133
↓ 2 callers
Method
Cap
()
pkg/container/vector/nogen_test.go:38
↓ 2 callers
Method
Cap
Cap returns the capacity of the slice.
pkg/reflect/value.go:605
↓ 2 callers
Function
Chain
Chain returns an Iterable that concatentates all values from the specified Iterables.
pkg/exp/iterable/iterable.go:208
↓ 2 callers
Function
Check
Check looks for an input to f, any function that returns bool, such that f returns false. It calls f repeatedly, with arbitrary values for each argum
pkg/testing/quick/quick.go:234
↓ 2 callers
Method
CheckDeadlines
()
pkg/net/fd.go:190
↓ 2 callers
Method
ChildScope
()
pkg/exp/eval/scope.go:104
↓ 2 callers
Function
Chown
Chown changes the numeric uid and gid of the named file. If the file is a symbolic link, it changes the uid and gid of the link's target.
pkg/os/file.go:378
↓ 2 callers
Method
Chown
Chown changes the numeric uid and gid of the named file.
pkg/os/file.go:395
↓ 2 callers
Function
Clean
Clean returns the shortest path name equivalent to path by purely lexical processing. It applies the following rules iteratively until no further pro
pkg/path/path.go:32
↓ 2 callers
Method
Cmp
Cmp compares x and y. The result is an int value that is < 0 if x < y == 0 if x == y > 0 if x > y
pkg/bignum/integer.go:453
↓ 2 callers
Method
ColorIndexAt
(x, y int)
pkg/image/image.go:228
↓ 2 callers
Method
ColorModel
()
pkg/image/image.go:10
↓ 2 callers
Method
CompileDeclList
(decls []ast.Decl)
pkg/exp/eval/world.go:76
↓ 2 callers
Method
CompileStmtList
(stmts []ast.Stmt)
pkg/exp/eval/world.go:44
↓ 2 callers
Function
ConstantTimeByteEq
ConstantTimeByteEq returns 1 if x == y and 0 otherwise.
pkg/crypto/subtle/constant_time.go:27
↓ 2 callers
Method
Convert
(c Color)
pkg/image/color.go:118
↓ 2 callers
Function
CopyToken
CopyToken returns a copy of a Token.
pkg/xml/xml.go:111
↓ 2 callers
Function
Cycle
Cycle repeats the values of iter in order infinitely.
pkg/exp/iterable/iterable.go:197
↓ 2 callers
Method
Data
Data returns all the elements as a slice.
pkg/container/vector/vector.go:108
↓ 2 callers
Method
Declare
Declare attempts to insert a named object into the scope s. If the scope does not contain an object with that name yet, Declare inserts the object, an
pkg/go/ast/scope.go:73
↓ 2 callers
Function
Decode
Decode decodes src into DecodedLen(len(src)) bytes, returning the actual number of bytes written to dst. If Decode encounters invalid input, it retur
pkg/encoding/hex/hex.go:51
↓ 2 callers
Function
Decode
Decode reads a PNG formatted image from r and returns it as an image.Image. The type of Image returned depends on the PNG contents.
pkg/image/png/reader.go:443
↓ 2 callers
Method
Decode
Decode decodes src using the encoding enc. It writes at most DecodedLen(len(src)) bytes to dst and returns the number of bytes written. If src conta
pkg/encoding/base64/base64.go:254
↓ 2 callers
Function
DecodeRune
DecodeRune returns the UTF-16 decoding of a surrogate pair. If the pair is not a valid UTF-16 surrogate pair, DecodeRune returns the Unicode replaceme
pkg/utf16/utf16.go:30
↓ 2 callers
Function
DecodedLen
(x int)
pkg/encoding/hex/hex.go:44
↓ 2 callers
Method
Decrypt
Decrypt decrypts the 8 byte buffer src using the key k and stores the result in dst.
pkg/crypto/xtea/cipher.go:61
↓ 2 callers
Function
DecryptOAEP
DecryptOAEP decrypts ciphertext using RSA-OAEP. If rand != nil, DecryptOAEP uses RSA blinding to avoid timing side-channel attacks.
pkg/crypto/rsa/rsa.go:367
↓ 2 callers
Function
DecryptPKCS1v15
DecryptPKCS1v15 decrypts a plaintext using RSA and the padding scheme from PKCS#1 v1.5. If rand != nil, it uses RSA blinding to avoid timing side-chan
pkg/crypto/rsa/pkcs1v15.go:46
↓ 2 callers
Method
Defn
()
pkg/debug/dwarf/type.go:162
↓ 2 callers
Method
DelFD
(fd int, mode int)
pkg/net/fd_nacl.go:26
↓ 2 callers
Function
DialUnix
DialUnix connects to the remote address raddr on the network net, which must be "unix" or "unixgram". If laddr is not nil, it is used as the local ad
pkg/net/unixsock.go:283
↓ 2 callers
Method
Div
Div returns p divided by k: Pt(p.X/k, p.Y/k).
pkg/exp/draw/arith.go:42
↓ 2 callers
Method
DivMod
DivMod returns the pair (x.Div(y), x.Mod(y)) for y > 0. If y == 0, a division-by-zero run-time error occurs.
pkg/bignum/bignum.go:621
↓ 2 callers
Function
DrawMask
DrawMask aligns r.Min in dst with sp in src and mp in mask and then replaces the rectangle r in dst with the result of a Porter-Duff composition. A ni
pkg/exp/draw/draw.go:42
↓ 2 callers
Function
Encode
Encode encodes src into EncodedLen(len(src)) bytes of dst. As a convenience, it returns the number of bytes written to dst, but this value is always
pkg/encoding/hex/hex.go:22
↓ 2 callers
Function
EncodeRune
EncodeRune returns the UTF-16 surrogate pair r1, r2 for the given rune. If the rune is not a valid Unicode code point or does not need encoding, Encod
pkg/utf16/utf16.go:40
↓ 2 callers
Function
EncodedLen
EncodedLen returns the length of an encoding of n source bytes.
pkg/encoding/hex/hex.go:16
↓ 2 callers
Method
EncodedLen
EncodedLen returns the length in bytes of the base64 encoding of an input buffer of length n.
pkg/encoding/base64/base64.go:191
↓ 2 callers
Method
Encrypt
Encrypt encrypts the 8 byte buffer src using the key and stores the result in dst. Note that for amounts of data larger than a block, it is not safe t
pkg/crypto/xtea/cipher.go:58
↓ 2 callers
Function
Exit
Exit causes the current program to exit with the given status code. Conventionally, code zero indicates success, non-zero an error.
pkg/os/proc.go:35
↓ 2 callers
Function
Exp2
Exp2 returns 2**x, the base-2 exponential of x. Special cases are the same as Exp.
pkg/math/exp.go:146
↓ 2 callers
Method
ExpFloat64
ExpFloat64 returns an exponentially distributed float64 in the range (0, +math.MaxFloat64] with an exponential distribution whose rate parameter (lamb
pkg/rand/exp.go:31
↓ 2 callers
Method
Export
Export exports a channel of a given type and specified direction. The channel to be exported is provided in the call and may be of arbitrary channel
pkg/netchan/export.go:224
↓ 2 callers
Function
Fdim
Fdim returns the maximum of x-y or 0.
pkg/math/fdim.go:8
↓ 2 callers
Method
Field
Field returns the i'th struct field.
pkg/reflect/type.go:457
↓ 2 callers
Method
FieldByIndex
FieldByIndex returns the nested field corresponding to index.
pkg/reflect/value.go:1246
↓ 2 callers
Function
FieldsFunc
FieldsFunc splits the string s at each run of Unicode code points c satifying f(c) and returns an array of slices of s. If no code points in s satisfy
pkg/strings/strings.go:181
↓ 2 callers
Function
FixAlloc_Alloc
pkg/runtime/mfixalloc.c:28
↓ 2 callers
Function
FixAlloc_Free
pkg/runtime/mfixalloc.c:55
↓ 2 callers
Function
FixAlloc_Init
Initialize f to allocate objects of the given size, using the allocator to obtain chunks of memory.
pkg/runtime/mfixalloc.c:14
↓ 2 callers
Method
Flush
Flush finishes writing the current file (optional).
pkg/archive/tar/writer.go:50
↓ 2 callers
Function
Fmax
Fmax returns the larger of x or y.
pkg/math/fdim.go:16
↓ 2 callers
Function
Fmin
Fmin returns the smaller of x or y.
pkg/math/fdim.go:24
↓ 2 callers
Function
ForkExec
ForkExec forks the current process and invokes Exec with the file, arguments, and environment specified by argv0, argv, and envv. It returns the proc
pkg/os/exec.go:18
↓ 2 callers
Function
FullRune
FullRune reports whether the bytes in p begin with a full UTF-8 encoding of a rune. An invalid encoding is considered a full Rune since it will conver
pkg/utf8/utf8.go:189
↓ 2 callers
Function
FullRuneInString
FullRuneInString is like FullRune but its input is a string.
pkg/utf8/utf8.go:195
↓ 2 callers
Method
G
G returns the current G pointer.
pkg/exp/ogle/arch.go:43
↓ 2 callers
Method
Gcd
Gcd computes the gcd of x and y.
pkg/bignum/bignum.go:1017
↓ 2 callers
Function
GcdInt
GcdInt sets d to the greatest common divisor of a and b, which must be positive numbers. If x and y are not nil, GcdInt sets x and y such that d = a*x
pkg/big/int.go:397
↓ 2 callers
Function
Get
Get issues a GET to the specified URL. If the response is one of the following redirect codes, it follows the redirect, up to a maximum of 10 redirec
pkg/http/client.go:100
↓ 2 callers
Method
InUseBytes
InUseBytes returns the number of bytes in use (AllocBytes - FreeBytes).
pkg/runtime/extern.go:288
↓ 2 callers
Method
InUseObjects
InUseObjects returns the number of objects in use (AllocObjects - FreeObjects).
pkg/runtime/extern.go:291
↓ 2 callers
Function
Inf
pkg/runtime/float.c:91
↓ 2 callers
Method
Init
A Writer must be initialized with a call to Init. The first parameter (output) specifies the filter output. The remaining parameters control the forma
pkg/tabwriter/tabwriter.go:184
↓ 2 callers
Method
Insert
Insert inserts into the vector an element of value x before the current element at index i.
pkg/container/vector/intvector.go:117
↓ 2 callers
Method
Insert
Insert inserts into the vector an element of value x before the current element at index i.
pkg/container/vector/vector.go:117
↓ 2 callers
Method
Insert
Insert inserts into the vector an element of value x before the current element at index i.
pkg/container/vector/stringvector.go:117
↓ 2 callers
Function
Int
Int defines an int flag with specified name, default value, and usage string. The return value is the address of an int variable that stores the value
pkg/flag/flag.go:313
↓ 2 callers
Function
Int64
Int64 defines an int64 flag with specified name, default value, and usage string. The return value is the address of an int64 variable that stores the
pkg/flag/flag.go:327
↓ 2 callers
Method
IsIndex
()
examples/godoc-zh/index.go:149
↓ 2 callers
Method
IsInt
IsInt returns true iff x can be written with a denominator 1 in the form x == x'/1; i.e., if x is an integer value.
pkg/bignum/rational.go:70
↓ 2 callers
Function
IsNaN
IsNaN returns true if either real(x) or imag(x) is NaN.
pkg/cmath/isnan.go:10
↓ 2 callers
Function
IsNaN
IsNaN returns whether f is an IEEE 754 ``not-a-number'' value.
pkg/math/bits.go:31
↓ 2 callers
Method
Iter
Channel iterator for range.
pkg/container/vector/vector.go:212
↓ 2 callers
Function
Itoa
Itoa returns the decimal string representation of i.
pkg/strconv/itoa.go:51
↓ 2 callers
Method
KeyboardChan
KeyboardChan returns a channel carrying keystrokes. An event is sent each time a key is pressed or released. The value k represents key k being presse
pkg/exp/draw/event.go:21
↓ 2 callers
Method
Len
()
doc/progs/sort.go:8
↓ 2 callers
Method
Less
(i, j int)
pkg/container/heap/heap_test.go:20
↓ 2 callers
Method
Less
(i, j int)
doc/progs/sort.go:9
↓ 2 callers
Method
ListExtensionsReply
(cookie Cookie)
pkg/xgb/xproto.go:3540
↓ 2 callers
Method
ListExtensionsRequest
()
pkg/xgb/xproto.go:3524
↓ 2 callers
Method
Lock
Lock locks rw for writing. If the lock is already locked for reading or writing, Lock blocks until the lock is available. To ensure that the lock even
pkg/sync/rwmutex.go:61
↓ 2 callers
Method
Lookup
(name string)
pkg/exp/eval/scope.go:163
↓ 2 callers
Function
LookupPort
LookupPort looks up the port for the given network and service.
pkg/net/port.go:51
↓ 2 callers
Method
LookupWord
(w string)
examples/godoc-zh/index.go:688
↓ 2 callers
Function
MCentral_Alloc
Helper: allocate one object from the central free list.
pkg/runtime/mcentral.c:70
↓ 2 callers
Function
MGetSizeClassInfo
pkg/runtime/mcentral.c:160
↓ 2 callers
Function
MHeap_AllocLarge
Allocate a span of exactly npage pages from the list of large spans.
pkg/runtime/mheap.c:127
↓ 2 callers
Function
MHeap_Free
Free the span back into the heap.
pkg/runtime/mheap.c:237
↓ 2 callers
Function
MSpan_Init
Initialize a new span with the given start and npages.
pkg/runtime/mheap.c:293
↓ 2 callers
Function
Marshal
Marshal serialises val as an ASN.1 structure and writes the result to out. In the case of an error, no output is produced.
pkg/asn1/marshal.go:485
↓ 2 callers
Method
Mul1
Mul1 returns the product x * d.
pkg/bignum/bignum.go:377
↓ 2 callers
Method
Neg
Operations Neg returns the negated value of x.
pkg/bignum/integer.go:101
↓ 2 callers
Method
Neg
Operations Neg returns the negated value of x.
pkg/bignum/rational.go:77
← previous
next →
1,601–1,700 of 8,676, ranked by callers