{"meta":{"slug":"golang-generic","name":"Golang Generic","category":"golang","source":"pterodactyl","owner":"pterodactyl","repo":"generic-eggs","branch":"main","path":"golang/egg-golang-generic.json","rawUrl":"https://raw.githubusercontent.com/pterodactyl/generic-eggs/main/golang/egg-golang-generic.json","indexedAt":1792246788483},"egg":{"_comment":"DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO","meta":{"version":"PTDL_v2","update_url":null},"exported_at":"2022-07-25T14:20:37-04:00","name":"golang generic","author":"parker@parkervcp.com","description":"A generic golang egg that compiles the application and saves an executable\r\n\r\nMeant to be customized before it is used.","features":null,"docker_images":{"ghcr.io/ptero-eggs/yolks:debian":"ghcr.io/ptero-eggs/yolks:debian"},"file_denylist":[],"startup":"./${EXECUTABLE}","config":{"files":"{}","startup":"{\r\n    \"done\": \"change this part\"\r\n}","logs":"{}","stop":"^C"},"scripts":{"installation":{"script":"#!/bin/bash\r\n# golang generic package\r\n\r\n\r\nif [ ! -d /mnt/server/ ]; then\r\n    mkdir -p /mnt/server/\r\nfi\r\n\r\ngo get ${GO_PACKAGE}\r\n\r\ncd src/${GO_PACKAGE}\r\n\r\ngo get\r\n\r\ngo build\r\n\r\ncp -f ${EXECUTABLE} /mnt/server/","container":"golang:1.15-buster","entrypoint":"bash"}},"variables":[{"name":"Go Package","description":"Go package to get and build","env_variable":"GO_PACKAGE","default_value":"","user_viewable":true,"user_editable":true,"rules":"required|string","field_type":"text"},{"name":"Executable","description":"This is the executable from the build.","env_variable":"EXECUTABLE","default_value":"","user_viewable":true,"user_editable":false,"rules":"required|string","field_type":"text"}]},"readme":"# Go Language Generic\n\nThis egg is designed to run any generic Go application, allowing users to pull their own Go source code from a Github repository.\n\nThe startup configs and commands may need changing to actually function properly.\n\nUsers cannot upload their own code as this is built to build the resulting bot.\n\n`GO_PACKAGE` is the variable for the Go repo i.e. `github.com/aurieh/ddg-ng`\n`EXECUTABLE` is the variable for the executable that is built i.e. `ddg-ng`\n\n## Configuration\n\nThe server will be stuck as `starting` until the egg Start Configuration is modified. You have to edit the text to match something your bot will print for Pterodactyl panel to detect it as running.\n![image](https://user-images.githubusercontent.com/10975908/126516861-c5cb4630-9f25-405c-8199-97bf5ec15a7f.png)\n\nYou can use arrays to have multiple different values when different bots are being used\n\n```json\n{\n  \"done\":[\n    \"change this text 1\",\n    \"change this text 2\"\n  ]\n}\n"}