Gofilego
Golang library wrapper around Gofile.io's upload API
Install / Use
/learn @steewbsd/GofilegoREADME
Gofilego!
Gofilego is a simple Golang wrapper around Gofile.io's API. It provides a basic library for uploading files inside your code and an executable to quickly upload files to Gofile.
Usage
To install the executable run:
go get -u github.com/0xSteeW/gofilego
go install github.com/0xSteeW/gofilego/gofilego-upload
To run it:
gofilego-upload -f test.file
Make sure you've set your GOPATH properly.
To get a basic help menu:
gofilego-upload -h
Library
To just install the library:
go get -u github.com/0xSteeW/gofilego
Then, import it in your code as follows:
import "github.com/0xSteeW/gofilego"
Documentation
Here is a basic example for uploading a file with email and password:
package main
import (
"fmt"
"github.com/0xSteeW/gofilego"
"os"
)
func main() {
conn, err := gofilego.NewConnection()
if err != nil {
fmt.Println(err.Error())
return
}
uploadStruct := &gofilego.Connection{Email: "example@email.com", Password: "rockyou"}
conn.Construct(uploadStruct)
// Open a file for uploading
reader, _ := os.Open("test.file")
conn.AddFile("testfilename", reader)
response, err := conn.Upload()
if err != nil {
fmt.Println(err.Error())
return
}
fmt.Println(response.Data["code"])
}
Index
*Connection* - Struct
Server string
FilesUploaded map[string]io.Reader
Email string
Description string
Password string
Expire time.Time
Tags []string
*UploadResponse* - Struct
Status string
Data map[string]interface{}
func (conn *Connection):
GetNewServer() error
NewConnection() (*Connection, error)
Construct(providedStruct *Connection)
Upload() (*UploadResponse, error)
AddFile(fileName string, reader io.Reader)
AddEmail(email string)
AddDescription(desc string)
AddPassword(pass string)
AddExpire(tstamp time.Time)
AddTags(tags ...string)
Related Skills
gh-issues
351.8kFetch GitHub issues, spawn sub-agents to implement fixes and open PRs, then monitor and address PR review comments. Usage: /gh-issues [owner/repo] [--label bug] [--limit 5] [--milestone v1.0] [--assignee @me] [--fork user/repo] [--watch] [--interval 5] [--reviews-only] [--cron] [--dry-run] [--model glm-5] [--notify-channel -1002381931352]
node-connect
351.8kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
oracle
351.8kBest practices for using the oracle CLI (prompt + file bundling, engines, sessions, and file attachment patterns).
taskflow-inbox-triage
351.8kname: taskflow-inbox-triage description: Example TaskFlow authoring pattern for inbox triage. Use when messages need different treatment based on intent, with some routes notifying immediately, some w
