Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
hahwul committed Jan 29, 2021
0 parents commit 5bb4bf7
Show file tree
Hide file tree
Showing 9 changed files with 176 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# These are supported funding model platforms

custom: ['https://paypal.me/hahwul', 'https://www.buymeacoffee.com/hahwul']
15 changes: 15 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Binaries for programs and plugins
*.exe
*.exe~
*.dll
*.so
*.dylib

# Test binary, built with `go test -c`
*.test

# Output of the go coverage tool, specifically when used with LiteIDE
*.out

# Dependency directories (remove the comment below to include it)
# vendor/
82 changes: 82 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
project_name: TEMPALTE-HAHWUL

before:
hooks:
- go mod download

builds:
-
main: .
binary: TEMPALTE-HAHWUL
goos:
- windows
- linux
- darwin
- freebsd
goarch:
- amd64
- 386
- arm
- arm64
goarm:
- 6
ignore:
- goos: darwin
goarch: 386
- goos: darwin
goarch: arm
- goos: darwin
goarch: arm64
- goos: windows
goarch: 386
- goos: windows
goarch: arm
- goos: windows
goarch: arm64

checksum:
name_template: "{{ .ProjectName }}_checksums.txt"

changelog:
sort: desc
filters:
exclude:
- '^MERGE'
- "{{ .Tag }}"

release:
github:
owner: hahwul
name: TEMPALTE-HAHWUL

brews:
-
name: TEMPALTE-HAHWUL
tap:
owner: hahwul
name: homebrew-TEMPALTE-HAHWUL
url_template: "https://github.com/hahwul/TEMPALTE-HAHWUL/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
commit_author:
name: hahwul
email: hahwul@gmail.com
folder: Formula
homepage: "https://www.hahwul.com"
description: ""
test: |
system "#{bin}/TEMPALTE-HAHWUL version"
install: |
bin.install "TEMPALTE-HAHWUL"
snapcrafts:
-
name: TEMPALTE-HAHWUL
# Remember you need to `snapcraft login` first.
publish: true
summary: abcd
description: abcd
grade: stable
confinement: strict
license: MIT

apps:
TEMPALTE-HAHWUL:
plugs: ["home","network","network-bind"]
13 changes: 13 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# BUILDER
FROM golang:latest AS builder
WORKDIR /go/src/app
COPY . .

RUN go get -d -v ./...
RUN go build -o abcd

# RUNNING
FROM debian:buster
RUN mkdir /app
WORKDIR /app/
CMD ["/app/abcd"]
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2020 HAHWUL

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<h1 align="center">
<br>
<a href=""><img src="https://user-images.githubusercontent.com/13212227/100126258-1329bb80-2ec1-11eb-915b-7a536a2524e0.png" alt="" width="500px;"></a>
<br>

<a href="https://twitter.com/intent/follow?screen_name=hahwul"><img src="https://img.shields.io/twitter/follow/hahwul?style=flat&logo=twitter"></a>
<a href="https://github.com/hahwul"><img src="https://img.shields.io/github/stars/hahwul?style=flat&logo=github"></a>
</h1>

> Oneline Description!
22 changes: 22 additions & 0 deletions init.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
echo "[+] Start init"
echo "[+] Prject name?"
read templatehahwul
echo "[+] Your project name is $templatehahwul"

# 1
echo "[+] Change .goreleaer.yml"
sed "s/TEMPLATE-HAHWUL/\$templatehahwul/" .goreleaser.yml | tee .goreleaser.yml

#2
echo "[+] Make 'go.mod'"
go mod init github.com/hahwul/$templatehahwul

#3
echo "[+] Cobra init"
cobra init --pkg-name github.com/hahwul/$templatehahwul
cobra add version

#final
echo "[+] Delete init.sh"
git rm init.sh
echo "[+] Please check '.goreleaser.yml' for descriptions"
6 changes: 6 additions & 0 deletions pkg/printing/banner.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package printing

// Banner is banner func
func Banner() {

}
4 changes: 4 additions & 0 deletions pkg/printing/version.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package printing

// VERSION is version
const VERSION = "v0.0.1"

0 comments on commit 5bb4bf7

Please sign in to comment.