One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
| #!/bin/bash | |
| # | |
| # hugo打包部署website 脚本 | |
| # | |
| # Date: 2018-05-11 | |
| # | |
| # 相关初始化 | |
| projectGitPath="/home/deployer/projects/archstat_docs" | |
| projectGitBranch="main" |
| GO_BIN ?= $(shell go env GOPATH)/bin | |
| GO_BUILD = go build | |
| PROG = $(GO_BIN)/$@ | |
| # export all variables | |
| .EXPORT_ALL_VARIABLES: | |
| GOPROXY = https://goproxy.io | |
| VAR1=G1 | |
| VAR2=G2 |
| package main | |
| import ( | |
| "fmt" | |
| "os" | |
| "os/signal" | |
| "time" | |
| ) | |
| func main() { |
| package main | |
| import ( | |
| "bufio" | |
| "fmt" | |
| "os" | |
| "time" | |
| ) | |
| func main() { |
| package main | |
| import ( | |
| "fmt" | |
| "time" | |
| ) | |
| func main() { | |
| timer := time.NewTimer(1 * time.Second) |
| package main | |
| import ( | |
| "errors" | |
| "fmt" | |
| "github.com/cenkalti/backoff" | |
| "math/rand" | |
| "time" | |
| ) |
| // Package google provides a function to do Google searches using the Google Web | |
| // Search API. See https://developers.google.com/web-search/docs/ | |
| // | |
| // This package is an example to accompany https://blog.golang.org/context. | |
| // It is not intended for use by others. | |
| // | |
| // Google has since disabled its search API, | |
| // and so this package is no longer useful. | |
| package google |
| package main | |
| import ( | |
| "context" | |
| "fmt" | |
| "math/rand" | |
| "sync" | |
| "time" | |
| ) |