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
↓ 10 callers
Method
Output
Output writes the output for a logging event. The string s contains the text to print after the time stamp; calldepth is used to recover the PC. It
pkg/log/log.go:128
↓ 10 callers
Method
PointTo
PointTo changes v to point to x.
pkg/reflect/value.go:1182
↓ 10 callers
Method
Pop
()
pkg/container/heap/heap.go:21
↓ 10 callers
Method
Pos
Pos is the position of the first character of the syntactic construct
pkg/ebnf/ebnf.go:42
↓ 10 callers
Method
Push
Convenience wrappers Push appends x to the end of the vector.
pkg/container/vector/intvector.go:175
↓ 10 callers
Method
RUnlock
RUnlock undoes a single RLock call; it does not affect other simultaneous readers. It is a run-time error if rw is not locked for reading on entry to
pkg/sync/rwmutex.go:48
↓ 10 callers
Method
ReadAt
(p []byte, off int64)
pkg/io/io.go:137
↓ 10 callers
Function
Sort
(data Interface)
pkg/sort/sort.go:134
↓ 10 callers
Method
String
()
pkg/go/scanner/errors.go:59
↓ 10 callers
Method
String
(s string)
pkg/json/parse.go:303
↓ 10 callers
Method
String
()
doc/progs/cat_rot13.go:28
↓ 10 callers
Method
Truncate
Truncate discards all but the first n unread bytes from the buffer. It is an error to call b.Truncate(n) with n > b.Len().
pkg/bytes/buffer.go:54
↓ 10 callers
Function
atoi
if s begins with the prefix t and then is a sequence of digits in the given base, atoi returns the number represented by the digits and s with the pre
pkg/patch/patch.go:300
↓ 10 callers
Function
decodeInt
decodeInt reads an encoded signed integer from state.r. Sets state.err. If state.err is already non-nil, it does nothing. Does not check for overflow
pkg/gob/decode.go:109
↓ 10 callers
Function
doPrec
floating-point
pkg/fmt/format.go:366
↓ 10 callers
Function
fillAlpha
(alpha int)
pkg/exp/draw/draw_test.go:22
↓ 10 callers
Method
linebreak
Other formatting issues: - better comment formatting for /*-style comments at the end of a line (e.g. a declaration) when the comment spans multiple l
pkg/go/printer/nodes.go:38
↓ 10 callers
Method
numError
()
pkg/exp/eval/compiler.go:35
↓ 10 callers
Method
octal
(b []byte)
pkg/archive/tar/reader.go:71
↓ 10 callers
Function
randomBytes
(n int, rand *rand.Rand)
pkg/crypto/tls/handshake_messages_test.go:85
↓ 10 callers
Method
ungetc
Unread a single byte.
pkg/xml/xml.go:736
↓ 10 callers
Function
zeroPad
(i int)
pkg/time/format.go:226
↓ 9 callers
Method
Assign
Assign copies another value into this one. It should assume that the other value satisfies the same specific value interface (BoolValue, etc.), but m
pkg/exp/eval/value.go:18
↓ 9 callers
Method
BlockSize
BlockSize returns the cipher's block size.
pkg/crypto/block/cipher.go:17
↓ 9 callers
Function
CompileRegexp
CompileRegexp parses a regular expression and returns, if successful, a Regexp object that can be used to match against text.
pkg/testing/regexp.go:582
↓ 9 callers
Function
Equal
Equal returns a boolean reporting whether a == b.
pkg/bytes/bytes.go:40
↓ 9 callers
Method
FieldByIndex
TODO(gri): Should there be an error/bool indicator if the index is wrong for FieldByIndex? FieldByIndex returns the nested field corresponding to inde
pkg/reflect/type.go:488
↓ 9 callers
Method
Flush
Flush writes any buffered data to the underlying io.Writer.
pkg/bufio/bufio.go:362
↓ 9 callers
Method
Format
(f State, c int)
pkg/fmt/print.go:123
↓ 9 callers
Method
IsLiteral
Predicates IsLiteral returns true for tokens corresponding to identifiers and basic type literals; returns false otherwise.
pkg/go/token/token.go:313
↓ 9 callers
Method
Link
Link returns the link register, if any.
pkg/debug/proc/proc.go:51
↓ 9 callers
Method
LookupFunc
LookupFunc returns the text, data, or bss symbol with the given name, or nil if no such symbol is found.
pkg/debug/gosym/symtab.go:395
↓ 9 callers
Function
Map
Map returns a copy of the byte array s with all its characters modified according to the mapping function. If mapping returns a negative value, the ch
pkg/bytes/bytes.go:280
↓ 9 callers
Function
Marshal
(w io.Writer, val interface{})
pkg/json/struct.go:420
↓ 9 callers
Method
Method
For non-interface types, Method returns the i'th method with receiver T. For interface types, Method returns the i'th method in the interface. NumMeth
pkg/reflect/type.go:292
↓ 9 callers
Function
MkdirAll
MkdirAll creates a directory named path, along with any necessary parents, and returns nil, or else returns an error. The permission bits perm are use
pkg/os/path.go:15
↓ 9 callers
Method
Move
Move moves n % r.Len() elements backward (n < 0) or forward (n >= 0) in the ring and returns that ring element. r must not be empty.
pkg/container/ring/ring.go:48
↓ 9 callers
Method
MulNat
MulNat returns the product x * y, where y is a (unsigned) natural number.
pkg/bignum/integer.go:201
↓ 9 callers
Function
MulRange
MulRange computes the product of all the unsigned integers in the range [a, b] inclusively.
pkg/bignum/bignum.go:986
↓ 9 callers
Method
QuoRem
QuoRem sets z to the quotient x/y and r to the remainder x%y and returns the pair (z, r) for y != 0. If y == 0, a division-by-zero run-time panic occu
pkg/big/int.go:133
↓ 9 callers
Function
Rect
Rect is shorthand for Rectangle{Pt(x0, y0), Pt(x1, y1)}.
pkg/exp/draw/arith.go:27
↓ 9 callers
Method
Section
Section returns a section with the given name, or nil if no such section exists.
pkg/debug/elf/file.go:382
↓ 9 callers
Method
Shift
Binary shift left (k > 0) or right (k < 0). Returns receiver for convenience.
pkg/strconv/decimal.go:270
↓ 9 callers
Method
StopSignal
StopSignal returns the signal that terminated the thread, or "" if it was not terminated by a signal.
pkg/debug/proc/proc.go:209
↓ 9 callers
Method
String
()
pkg/exp/ogle/event.go:58
↓ 9 callers
Method
Sum32
()
pkg/hash/hash.go:29
↓ 9 callers
Method
Truncate
Truncate changes the size of the file. It does not change the I/O offset.
pkg/os/file.go:404
↓ 9 callers
Function
Unmarshal
Unmarshal parses the JSON syntax string s and fills in an arbitrary struct or slice pointed at by val. It uses the reflect package to assign to fields
pkg/json/struct.go:291
↓ 9 callers
Function
Var
Var defines a user-typed flag with specified name, default value, and usage string. The argument p points to a Value variable in which to store the va
pkg/flag/flag.go:405
↓ 9 callers
Function
addr
(x nat)
pkg/big/arith_test.go:55
↓ 9 callers
Method
bytes
(n int)
pkg/debug/dwarf/buf.go:41
↓ 9 callers
Method
doExecute
Accepts either string or bytes - the logic is identical either way. If bytes == nil, scan str.
pkg/regexp/regexp.go:778
↓ 9 callers
Function
empty
Empty buf through repeated reads into fub. The initial contents of buf corresponds to the string s.
pkg/bytes/buffer_test.go:104
↓ 9 callers
Method
expr0
(x ast.Expr, depth int, multiLine *bool)
pkg/go/printer/nodes.go:905
↓ 9 callers
Method
get
()
examples/godoc-zh/godoc.go:51
↓ 9 callers
Function
getFloat64
(a interface{})
pkg/fmt/print.go:429
↓ 9 callers
Method
isStopped
()
pkg/debug/proc/proc_linux.go:83
↓ 9 callers
Function
marshalTwoDigits
(out *forkableWriter, v int)
pkg/asn1/marshal.go:234
↓ 9 callers
Function
memmove
TODO: This will have to go away when the new gc goes in.
pkg/reflect/value.go:19
↓ 9 callers
Method
mul
(x, y nat)
pkg/big/nat.go:400
↓ 9 callers
Method
padString
append s to buf, padded on left (w > 0) or right (w < 0 or f.minus). clear flags aftewards.
pkg/fmt/format.go:130
↓ 9 callers
Method
set
(x nat)
pkg/big/nat.go:105
↓ 9 callers
Method
uint8
()
pkg/debug/dwarf/buf.go:30
↓ 9 callers
Method
write0
write0 writes raw (uninterpreted) data to p.output and handles errors. write0 does not indent after newlines, and does not HTML-escape or update p.pos
pkg/go/printer/printer.go:118
↓ 8 callers
Function
Abs
Abs returns the absolute value (also called the modulus) of x.
pkg/cmath/abs.go:10
↓ 8 callers
Method
Add
Add returns the sum z = x + y.
pkg/bignum/bignum.go:262
↓ 8 callers
Function
Bytes
Bytes returns a new slice containing the bytes in s. Borrowed from strings to avoid dependency.
pkg/bytes/bytes_test.go:373
↓ 8 callers
Function
DecodeRune
DecodeRune unpacks the first UTF-8 encoding in p and returns the rune and its width in bytes.
pkg/utf8/utf8.go:201
↓ 8 callers
Function
Draw
Draw calls DrawMask with a nil mask and an Over op.
pkg/exp/draw/draw.go:34
↓ 8 callers
Function
Fact
Fact computes the factorial of n (Fact(n) == MulRange(2, n)).
pkg/bignum/bignum.go:1003
↓ 8 callers
Method
Failed
Failed returns whether the Test function has failed.
pkg/testing/testing.go:80
↓ 8 callers
Function
Frexp
Frexp breaks f into a normalized fraction and an integral power of two. It returns frac and exp satisfying f == frac × 2**exp, with the absolute value
pkg/math/frexp.go:11
↓ 8 callers
Method
Init
Init prepares the scanner S to tokenize the text src. Calls to Scan will use the error handler err if they encounter a syntax error and err is not nil
pkg/go/scanner/scanner.go:92
↓ 8 callers
Function
Join
Join joins any number of path elements into a single path, adding a separating slash if necessary. All empty strings are ignored.
pkg/path/path.go:120
↓ 8 callers
Function
Ldexp
Ldexp is the inverse of Frexp. It returns frac × 2**exp.
pkg/math/ldexp.go:9
↓ 8 callers
Function
Log1p
The original C code, the long comment, and the constants below are from FreeBSD's /usr/src/lib/msun/src/s_log1p.c and came with this notice. The go c
pkg/math/log1p.go:95
↓ 8 callers
Function
MHeapMap_Set
pkg/runtime/mheapmap32.c:52
↓ 8 callers
Function
MakeZero
MakeZero returns a zero Value for the specified Type.
pkg/reflect/value.go:1383
↓ 8 callers
Function
New
New returns an initialized list.
pkg/container/list/list.go:44
↓ 8 callers
Function
NewCipher
NewCipher creates and returns a new Cipher. The key argument should be the XTEA key. XTEA only supports 128 bit (16 byte) keys.
pkg/crypto/xtea/cipher.go:34
↓ 8 callers
Function
NewEvent
(name string, predecessors []*Event, action action)
pkg/testing/script/script.go:184
↓ 8 callers
Function
NewFile
NewFile returns a new File with the given file descriptor and name.
pkg/os/file.go:29
↓ 8 callers
Function
NewMultiType
(elems []Type)
pkg/exp/eval/type.go:1174
↓ 8 callers
Function
NewParser
NewParser creates a new XML parser reading from r.
pkg/xml/xml.go:182
↓ 8 callers
Method
NumIn
NumIn returns the number of input parameters.
pkg/reflect/type.go:404
↓ 8 callers
Function
Pipe
Pipe creates a synchronous in-memory pipe. It can be used to connect code expecting an io.Reader with code expecting an io.Writer. Reads on one end ar
pkg/io/pipe.go:256
↓ 8 callers
Function
Set
Set sets the value of the named flag. It returns true if the set succeeded; false if there is no such flag defined.
pkg/flag/flag.go:231
↓ 8 callers
Method
SetElem
Set an entry in the map. If val is nil, delete the entry.
pkg/exp/eval/value.go:127
↓ 8 callers
Function
Sincos
Sincos(x) returns Sin(x), Cos(x). Special conditions are: Sincos(+Inf) = NaN, NaN Sincos(-Inf) = NaN, NaN Sincos(NaN) = NaN, NaN
pkg/math/sincos.go:13
↓ 8 callers
Method
ToUpper
ToUpper maps the rune to upper case giving priority to the special mapping.
pkg/unicode/letter.go:217
↓ 8 callers
Function
Uitob64
Uitob64 returns the string representation of i in the given base.
pkg/strconv/itoa.go:8
↓ 8 callers
Method
Width
Width returns the value of the width option and whether it has been set.
pkg/fmt/print.go:111
↓ 8 callers
Method
Write
Write appends the contents of p to the buffer. The return value n is the length of p; err is always nil.
pkg/bytes/buffer.go:92
↓ 8 callers
Function
abs8
The absolute value of a byte interpreted as a signed int8.
pkg/image/png/writer.go:49
↓ 8 callers
Method
block
block prints an *ast.BlockStmt; it always spans at least two lines.
pkg/go/printer/nodes.go:945
↓ 8 callers
Method
c
()
pkg/regexp/regexp.go:272
↓ 8 callers
Method
c
()
pkg/testing/regexp.go:281
↓ 8 callers
Function
chunked
Checks whether chunked is part of the encodings stack
pkg/http/transfer.go:262
↓ 8 callers
Function
collide
(pt draw.Point, p *Piece)
pkg/exp/4s/xs.go:196
↓ 8 callers
Method
compileStmt
* * Block compiler */
pkg/exp/eval/stmt.go:1203
← previous
next →
401–500 of 8,676, ranked by callers