func (files *Files) GetByName(fileName string) *File {
	return NewFile(
		files.client,
		fmt.Sprintf("%s('%s')", files.endpoint, fileName),
		files.config,
	)
}
GetByName gets a file by its name
package api
import (
	"bytes"
	"fmt"
	"github.com/koltyakov/gosip"
)
type Files struct {
	client    *gosip.SPClient
	config    *RequestConfig
	endpoint  string
	modifiers *ODataMods
}
type FilesResp []byte
func NewFiles(client *gosip.SPClient, endpoint string, config *RequestConfig) *Files {
	return &Files{
		client:    client,
		endpoint:  endpoint,
		config:    config,
		modifiers: NewODataMods(),
	}
}
func (files *Files) ToURL() string {
	return toURL(files.endpoint, files.modifiers)
}
func (files *Files) Get() (FilesResp, error) {
	client := NewHTTPClient(files.client)
	return client.Get(files.ToURL(), files.config)
}