Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for NewDecoder (0.21 sec)

  1. src/bytes/example_test.go

    	b.WriteTo(os.Stdout)
    	// Output: Hello world!
    }
    
    func ExampleBuffer_reader() {
    	// A Buffer can turn a string or a []byte into an io.Reader.
    	buf := bytes.NewBufferString("R29waGVycyBydWxlIQ==")
    	dec := base64.NewDecoder(base64.StdEncoding, buf)
    	io.Copy(os.Stdout, dec)
    	// Output: Gophers rule!
    }
    
    func ExampleBuffer_Bytes() {
    	buf := bytes.Buffer{}
    	buf.Write([]byte{'h', 'e', 'l', 'l', 'o', ' ', 'w', 'o', 'r', 'l', 'd'})
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Mar 04 15:54:40 GMT 2024
    - 15K bytes
    - Viewed (1)
  2. misc/ios/go_ios_exec.go

    	return "", fmt.Errorf("failed to find device path for bundle: %s", bundleID)
    }
    
    // Parse an xml encoded plist. Plist values are mapped to string.
    func parsePlistDict(dict []byte) (map[string]string, error) {
    	d := xml.NewDecoder(bytes.NewReader(dict))
    	values := make(map[string]string)
    	var key string
    	var hasKey bool
    	for {
    		tok, err := d.Token()
    		if err == io.EOF {
    			break
    		}
    		if err != nil {
    			return nil, err
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Apr 11 16:34:30 GMT 2022
    - 23.4K bytes
    - Viewed (0)
  3. src/cmd/api/main_test.go

    		if err != nil {
    			log.Fatalf("loading imports: %v\n%s", err, out)
    		}
    
    		var stdPackages []string
    		importMap := make(map[string]map[string]string)
    		importDir := make(map[string]string)
    		dec := json.NewDecoder(bytes.NewReader(out))
    		for {
    			var pkg struct {
    				ImportPath, Dir string
    				ImportMap       map[string]string
    				Standard        bool
    			}
    			err := dec.Decode(&pkg)
    			if err == io.EOF {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Apr 09 20:48:51 GMT 2024
    - 31.4K bytes
    - Viewed (0)
  4. api/go1.txt

    pkg encoding/ascii85, func Decode([]uint8, []uint8, bool) (int, int, error)
    pkg encoding/ascii85, func Encode([]uint8, []uint8) int
    pkg encoding/ascii85, func MaxEncodedLen(int) int
    pkg encoding/ascii85, func NewDecoder(io.Reader) io.Reader
    pkg encoding/ascii85, func NewEncoder(io.Writer) io.WriteCloser
    pkg encoding/ascii85, method (CorruptInputError) Error() string
    pkg encoding/ascii85, type CorruptInputError int64
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Aug 14 18:58:28 GMT 2013
    - 1.7M bytes
    - Viewed (1)
  5. api/go1.10.txt

    pkg encoding/asn1, const TagNumericString ideal-int
    pkg encoding/asn1, func MarshalWithParams(interface{}, string) ([]uint8, error)
    pkg encoding/csv, type ParseError struct, StartLine int
    pkg encoding/hex, func NewDecoder(io.Reader) io.Reader
    pkg encoding/hex, func NewEncoder(io.Writer) io.Writer
    pkg encoding/json, method (*Decoder) DisallowUnknownFields()
    pkg encoding/xml, func NewTokenDecoder(TokenReader) *Decoder
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Feb 06 05:00:01 GMT 2018
    - 30.1K bytes
    - Viewed (0)
Back to top