Documentation ¶
Overview ¶
Copyright © 2021 Harran Ali <harran.m@gmail.com>. All rights reserved. Use of this source code is governed by MIT-style license that can be found in the LICENSE file.
Index ¶
- Constants
- func Execute()
- type CmdNew
- func (cn *CmdNew) DownloadConfig(http *http.Client, url string, conf *Config) *Config
- func (cn *CmdNew) DownloadGincoat(http *http.Client, url string, tempName string) string
- func (cn *CmdNew) GenerateTempName() string
- func (cn *CmdNew) IsUpdatedRequired(LatestReleasedVersion string) bool
- func (cn *CmdNew) PrintUpdateRequiredMessage()
- func (cn *CmdNew) Unpack(filePath string, destPath string)
- type Config
- type Release
Constants ¶
View Source
const CONFIG_URL string = "https://raw.githubusercontent.com/gincoat/installer/master/gincoat/config.json"
Config file
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CmdNew ¶
type CmdNew struct{}
struct for creating new project command
func (*CmdNew) DownloadConfig ¶
Download config
func (*CmdNew) DownloadGincoat ¶
Download Gincoat archive
func (*CmdNew) IsUpdatedRequired ¶
Check for updates
func (*CmdNew) PrintUpdateRequiredMessage ¶
func (cn *CmdNew) PrintUpdateRequiredMessage()
Print update required message
Click to show internal directories.
Click to hide internal directories.