Skip to content
Snippets Groups Projects
Select Git revision
  • 274a204ffe164fbdb11f3ee3b061720c5b171337
  • master default protected
  • 1.31
  • 4.28.0
  • 4.27.0
  • 4.26.0
  • 4.25.5
  • 4.25.4
  • 4.25.3
  • 4.25.2
  • 4.25.1
  • 4.25.0
  • 4.24.3
  • 4.24.2
  • 4.24.1
  • 4.24.0
  • 4.23.6
  • 4.23.5
  • 4.23.4
  • 4.23.3
  • 4.23.2
  • 4.23.1
  • 4.23.0
23 results

298.html

Blame
  • assets.go 284.76 KiB
    // Code generated by go-bindata. DO NOT EDIT.
    // sources:
    // static/forms-post.html (1.398kB)
    // static/image.jpeg (35.588kB)
    // static/image.png (8.09kB)
    // static/image.svg (8.984kB)
    // static/image.webp (10.568kB)
    // static/index.html (11.363kB)
    // static/moby.html (3.742kB)
    // static/sample.json (421B)
    // static/sample.xml (522B)
    // static/utf8.html (14.24kB)
    
    package assets
    
    import (
    	"bytes"
    	"compress/gzip"
    	"crypto/sha256"
    	"fmt"
    	"io"
    	"io/ioutil"
    	"os"
    	"path/filepath"
    	"strings"
    	"time"
    )
    
    func bindataRead(data []byte, name string) ([]byte, error) {
    	gz, err := gzip.NewReader(bytes.NewBuffer(data))
    	if err != nil {
    		return nil, fmt.Errorf("read %q: %w", name, err)
    	}
    
    	var buf bytes.Buffer
    	_, err = io.Copy(&buf, gz)
    	clErr := gz.Close()
    
    	if err != nil {
    		return nil, fmt.Errorf("read %q: %w", name, err)
    	}
    	if clErr != nil {
    		return nil, err
    	}
    
    	return buf.Bytes(), nil
    }
    
    type asset struct {
    	bytes  []byte
    	info   os.FileInfo
    	digest [sha256.Size]byte
    }
    
    type bindataFileInfo struct {
    	name    string
    	size    int64
    	mode    os.FileMode
    	modTime time.Time
    }
    
    func (fi bindataFileInfo) Name() string {
    	return fi.name
    }
    func (fi bindataFileInfo) Size() int64 {
    	return fi.size
    }
    func (fi bindataFileInfo) Mode() os.FileMode {
    	return fi.mode
    }