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
New
New returns a new hash.Hash computing the checksum.
pkg/crypto/ripemd160/ripemd160.go:46
↓ 2 callers
Function
New
New returns a new HMAC hash using the given hash and key.
pkg/crypto/hmac/hmac.go:76
↓ 2 callers
Function
New
New creates a new hash.Hash64 computing the CRC-64 checksum using the polynomial represented by the Table.
pkg/hash/crc64/crc64.go:54
↓ 2 callers
Function
New
New creates a new template with the specified formatter map (which may be nil) to define auxiliary functions for formatting variables.
pkg/template/template.go:176
↓ 2 callers
Function
New
New establishes a new connection to the system log daemon. Each write to the returned writer sends a log message with the given priority and prefix.
pkg/syslog/syslog.go:43
↓ 2 callers
Function
NewBuffer
NewBuffer creates and initializes a new Buffer using buf as its initial contents. It is intended to prepare a Buffer to read existing data. It can a
pkg/bytes/buffer.go:256
↓ 2 callers
Function
NewCMAC
TODO(rsc): Should this return an error instead of panic? NewCMAC returns a new instance of a CMAC message authentication code digest using the given C
pkg/crypto/block/cmac.go:31
↓ 2 callers
Function
NewCTRReader
NewCTRReader returns a reader that reads data from r, decrypts (or encrypts) it using c in counter (CTR) mode with the initialization vector iv. The r
pkg/crypto/block/ctr.go:54
↓ 2 callers
Function
NewCTRWriter
NewCTRWriter returns a writer that encrypts (or decrypts) data using c in counter (CTR) mode with the initialization vector iv and writes the encrypte
pkg/crypto/block/ctr.go:65
↓ 2 callers
Function
NewCipher
NewCipher creates and returns a Cipher. The key argument should be the Blowfish key, 4 to 56 bytes.
pkg/crypto/blowfish/cipher.go:33
↓ 2 callers
Function
NewCipher
NewCipher creates and returns a new Cipher. The key argument should be the AES key, either 16, 24, or 32 bytes to select AES-128, AES-192, or AES-256.
pkg/crypto/aes/cipher.go:31
↓ 2 callers
Function
NewClient
NewClient returns a new rpc.Client to handle requests to the set of services at the other end of the connection.
pkg/rpc/jsonrpc/client.go:99
↓ 2 callers
Function
NewDeflater
(w io.Writer, level int)
pkg/compress/flate/deflate.go:439
↓ 2 callers
Function
NewDeflaterLevel
NewDeflaterLevel creates a new io.WriteCloser that satisfies writes by compressing data written to w. It is the caller's responsibility to call Close
pkg/compress/zlib/writer.go:41
↓ 2 callers
Function
NewEncoding
NewEncoding returns a new Encoding defined by the given alphabet, which must be a 64-byte string.
pkg/encoding/base64/base64.go:33
↓ 2 callers
Function
NewExporter
NewExporter creates a new Exporter to export channels on the network and local address defined as in net.Listen.
pkg/netchan/export.go:179
↓ 2 callers
Function
NewIEEE
NewIEEE creates a new hash.Hash32 computing the CRC-32 checksum using the IEEE polynomial.
pkg/hash/crc32/crc32.go:69
↓ 2 callers
Method
NewId
NewID generates a new unused ID for use with requests like CreateWindow.
pkg/xgb/xgb.go:62
↓ 2 callers
Function
NewImporter
NewImporter creates a new Importer object to import channels from an Exporter at the network and remote address as defined in net.Dial. The Exporter m
pkg/netchan/import.go:39
↓ 2 callers
Function
NewInflater
NewInflater returns a new ReadCloser that can be used to read the uncompressed version of r. It is the caller's responsibility to call Close on the R
pkg/compress/flate/inflate.go:606
↓ 2 callers
Function
NewInflater
NewInflater creates a new Inflater reading the given reader. The implementation buffers input and may read more data than necessary from r. It is the
pkg/compress/gzip/gunzip.go:80
↓ 2 callers
Function
NewInflater
NewInflater creates a new io.ReadCloser that satisfies reads by decompressing data read from r. The implementation buffers input and may read more dat
pkg/compress/zlib/reader.go:52
↓ 2 callers
Function
NewWriter
NewWriter returns a new Writer whose buffer has the default size.
pkg/bufio/bufio.go:352
↓ 2 callers
Method
Not
Not sets z = ^x and returns z.
pkg/big/int.go:613
↓ 2 callers
Function
NsecToTimeval
(nsec int64)
pkg/syscall/syscall_nacl_386.go:9
↓ 2 callers
Function
Open
Open opens the named file using os.Open and prepares it for use as a Mach-O binary.
pkg/debug/macho/file.go:136
↓ 2 callers
Function
Open
Open opens the named file using os.Open and prepares it for use as an ELF binary.
pkg/debug/elf/file.go:137
↓ 2 callers
Method
Or
Or returns the ``bitwise or'' x | y for the 2's-complement representation of x and y.
pkg/bignum/integer.go:403
↓ 2 callers
Method
Out
Out selects the caller frame of the current frame.
pkg/exp/ogle/process.go:518
↓ 2 callers
Method
Outer
Outer returns the Frame that called this Frame, or nil if this is the outermost frame.
pkg/exp/ogle/frame.go:168
↓ 2 callers
Method
Overlaps
Overlaps returns true if r and r1 cross; that is, it returns true if they share any point.
pkg/exp/draw/arith.go:71
↓ 2 callers
Method
ParseForm
ParseForm parses the request body as a form for POST requests, or the raw query for GET requests. It is idempotent.
pkg/http/request.go:594
↓ 2 callers
Function
ParsePKCS1PrivateKey
ParsePKCS1PrivateKey returns an RSA private key from its ASN.1 PKCS#1 DER encoded form.
pkg/crypto/x509/x509.go:37
↓ 2 callers
Function
ParseQuery
(query string)
pkg/http/request.go:569
↓ 2 callers
Function
Pipe
Pipe returns a connected pair of Files; reads from r return bytes written to w. It returns the files and an Error, if any.
pkg/os/file.go:192
↓ 2 callers
Method
Poke
Poke writes b to the address addr in this thread. The thread must be stopped. It returns the number of bytes successfully written. If an error occu
pkg/debug/proc/proc.go:107
↓ 2 callers
Method
PolyLine
(CoordinateMode byte, Drawable Id, Gc Id, Points []Point)
pkg/xgb/xproto.go:2718
↓ 2 callers
Method
Prev
Prev returns the previous ring element. r must not be empty.
pkg/container/ring/ring.go:37
↓ 2 callers
Function
ProbablyPrime
ProbablyPrime performs n Miller-Rabin tests to check whether z is prime. If it returns true, z is prime with probability 1 - 1/4^n. If it returns fals
pkg/big/int.go:455
↓ 2 callers
Method
Process
()
pkg/exp/ogle/event.go:56
↓ 2 callers
Function
Push
Push pushes the element x onto the heap. The complexity is O(log(n)) where n = h.Len().
pkg/container/heap/heap.go:42
↓ 2 callers
Method
PutUint32
([]byte, uint32)
pkg/encoding/binary/binary.go:23
↓ 2 callers
Method
PutUint64
([]byte, uint64)
pkg/encoding/binary/binary.go:24
↓ 2 callers
Method
QuitChan
QuitChan returns a channel carrying quit requests. After reading a value from the quit channel, the application should exit.
pkg/exp/draw/event.go:38
↓ 2 callers
Function
RatFromString
RatFromString returns the rational number corresponding to the longest possible prefix of s representing a rational number in a given conversion base,
pkg/bignum/rational.go:165
↓ 2 callers
Function
Read
Read reads structured binary data from r into data. Data must be a pointer to a fixed-size value or a slice of fixed-size values. A fixed-size value i
pkg/encoding/binary/binary.go:123
↓ 2 callers
Method
Read
(p []byte)
pkg/compress/gzip/gunzip.go:189
↓ 2 callers
Method
ReadByte
ReadByte reads and returns the next byte from the buffer. If no byte is available, it returns error os.EOF.
pkg/bytes/buffer.go:220
↓ 2 callers
Method
ReadByte
()
pkg/compress/flate/inflate.go:196
↓ 2 callers
Method
ReadBytes
ReadBytes reads until the first occurrence of delim in the input, returning a string containing the data up to and including the delimiter. If ReadByt
pkg/bufio/bufio.go:243
↓ 2 callers
Function
ReadDir
ReadDir reads the directory named by dirname and returns a list of sorted directory entries.
pkg/io/ioutil/ioutil.go:74
↓ 2 callers
Function
ReadFile
(handle int32, buf []byte, done *uint32, overlapped *Overlapped)
pkg/syscall/zsyscall_windows_386.go:120
↓ 2 callers
Function
ReadFull
ReadFull reads exactly len(buf) bytes from r into buf. It returns the number of bytes copied and an error if fewer bytes were read. The error is os.EO
pkg/io/io.go:190
↓ 2 callers
Method
ReadRune
ReadRune reads a single UTF-8 encoded Unicode character and returns the rune and its size in bytes.
pkg/bufio/bufio.go:175
↓ 2 callers
Function
Readlink
Readlink reads the contents of a symbolic link: the destination of the link. It returns the contents and an Error, if any.
pkg/os/file.go:335
↓ 2 callers
Function
Register
Register publishes in the server the set of methods of the receiver value that satisfy the following conditions: - public method - two arguments, bo
pkg/rpc/server.go:401
↓ 2 callers
Method
Rem
Rem sets z to the remainder x%y for y != 0 and returns z. If y == 0, a division-by-zero run-time panic occurs. See QuoRem for more details.
pkg/big/int.go:115
↓ 2 callers
Method
Rem
Rem returns the remainder r of the division x / y for y != 0, with r = x - y*x.Quo(y). Unless r is zero, its sign corresponds to the sign of x. If y =
pkg/bignum/integer.go:232
↓ 2 callers
Method
ReplaceAllFunc
ReplaceAllFunc returns a copy of src in which all matches for the Regexp have been replaced by the return value of of function repl (whose first argum
pkg/regexp/regexp.go:1047
↓ 2 callers
Method
ReplaceAllStringFunc
ReplaceAllStringFunc returns a copy of src in which all matches for the Regexp have been replaced by the return value of of function repl (whose first
pkg/regexp/regexp.go:995
↓ 2 callers
Method
RoundedInteger
Extract integer part, rounded appropriately. No guarantees about overflow.
pkg/strconv/decimal.go:352
↓ 2 callers
Method
SP
SP returns the value of the stack pointer.
pkg/debug/proc/proc.go:57
↓ 2 callers
Method
Screen
Screen returns an editable Image of window.
pkg/exp/draw/event.go:10
↓ 2 callers
Method
Seek
Seek positions the Reader at offset off in the encoded entry stream. Offset 0 can be used to denote the first entry.
pkg/debug/dwarf/entry.go:251
↓ 2 callers
Function
Select
(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval)
pkg/syscall/zsyscall_linux_386.go:719
↓ 2 callers
Function
ServeConn
ServeConn runs the server on a single connection. ServeConn blocks, serving the connection until the client hangs up. The caller typically invokes Ser
pkg/rpc/server.go:422
↓ 2 callers
Function
ServeConn
ServeConn runs the JSON-RPC server on a single connection. ServeConn blocks, serving the connection until the client hangs up. The caller typically in
pkg/rpc/jsonrpc/server.go:121
↓ 2 callers
Method
Set
Set sets the i'th element of the vector to value x.
pkg/container/vector/intvector.go:100
↓ 2 callers
Method
Set
Set sets the i'th element of the vector to value x.
pkg/container/vector/vector.go:100
↓ 2 callers
Method
Set
Set sets the i'th element of the vector to value x.
pkg/container/vector/stringvector.go:100
↓ 2 callers
Method
Set
(x, y int, c Color)
pkg/image/image.go:37
↓ 2 callers
Method
Set
Set assigns x to v. The new value x must have the same type as v.
pkg/reflect/value.go:1037
↓ 2 callers
Method
Set
Set assigns x to v. The new value x must have the same type as v.
pkg/reflect/value.go:1158
↓ 2 callers
Method
SetDelims
SetDelims sets the left and right delimiters for operations in the template. They are validated during parsing. They could be validated here but it'
pkg/template/template.go:930
↓ 2 callers
Function
SetOptimize
(b bool)
pkg/strconv/internal_test.go:11
↓ 2 callers
Method
SetTimeout
SetTimeout sets the read and write deadlines associated with the connection.
pkg/net/net.go:46
↓ 2 callers
Method
Signaled
()
pkg/syscall/syscall_linux.go:135
↓ 2 callers
Method
Snippet
(i int)
examples/godoc-zh/index.go:748
↓ 2 callers
Function
SortStrings
SortStrings sorts an array of strings in increasing order.
pkg/sort/sort.go:190
↓ 2 callers
Function
Split
Split splits the array s around each instance of sep, returning an array of subarrays of s. If sep is empty, Split splits s after each UTF-8 sequence.
pkg/bytes/bytes.go:185
↓ 2 callers
Function
SqrtGo
Make sqrtGo available for testing.
pkg/math/sqrt_test.go:9
↓ 2 callers
Function
Stat
(path string, stat *Stat_t)
pkg/syscall/syscall_windows.go:277
↓ 2 callers
Method
Stop
Stop turns off a ticker. After Stop, no more ticks will be sent.
pkg/time/tick.go:23
↓ 2 callers
Function
String
String defines a string flag with specified name, default value, and usage string. The return value is the address of a string variable that stores th
pkg/flag/flag.go:369
↓ 2 callers
Method
String
()
pkg/flag/flag_test.go:159
↓ 2 callers
Function
StringByteSlice
StringByteSlice returns a NUL-terminated slice of bytes containing the text of s.
pkg/syscall/syscall.go:22
↓ 2 callers
Method
SymByAddr
SymByAddr returns the text, data, or bss symbol starting at the given address. TODO(rsc): Allow lookup by any address within the symbol.
pkg/debug/gosym/symtab.go:407
↓ 2 callers
Function
Symlink
Symlink creates a symbolic link.
pkg/os/file.go:325
↓ 2 callers
Function
SysAlloc
pkg/runtime/tiny/mem.c:11
↓ 2 callers
Function
Syscall9
dll helpers implemented in ../pkg/runtime/windows/syscall.cgo
pkg/syscall/syscall_windows.go:76
↓ 2 callers
Function
ToLower
ToLower returns a copy of the string s with all Unicode letters mapped to their lower case.
pkg/strings/strings.go:305
↓ 2 callers
Function
ToLowerSpecial
ToLowerSpecial returns a copy of the string s with all Unicode letters mapped to their lower case, giving priority to the special casing rules.
pkg/strings/strings.go:318
↓ 2 callers
Method
ToString
ToString converts x to a string for a given base, with 2 <= base <= 16.
pkg/bignum/integer.go:476
↓ 2 callers
Method
ToString
ToString converts x to a string for a given base, with 2 <= base <= 16. The string representation is of the form "n" if x is an integer; otherwise it
pkg/bignum/rational.go:125
↓ 2 callers
Function
ToUpper
ToUpper returns a copy of the string s with all Unicode letters mapped to their upper case.
pkg/strings/strings.go:302
↓ 2 callers
Function
ToUpperSpecial
ToUpperSpecial returns a copy of the string s with all Unicode letters mapped to their upper case, giving priority to the special casing rules.
pkg/strings/strings.go:312
↓ 2 callers
Method
ToWord
ToWord converts an array of up to 8 bytes in memory order to a word.
pkg/exp/ogle/arch.go:15
↓ 2 callers
Method
TokenText
TokenText returns the string corresponding to the most recently scanned token. Valid after calling Scan().
pkg/scanner/scanner.go:621
↓ 2 callers
Function
Tokenize
Tokenize calls a function f with the token position, token value, and token text for each token in the source src. The other parameters have the same
pkg/go/scanner/scanner.go:662
↓ 2 callers
Function
TotalSize
(v reflect.Value)
pkg/encoding/binary/binary.go:166
← previous
next →
1,701–1,800 of 8,676, ranked by callers