Skip to content

Commit 8c5d1e7

Browse files
author
mi-bear
committed
first commit
0 parents  commit 8c5d1e7

File tree

4 files changed

+181
-0
lines changed

4 files changed

+181
-0
lines changed

.gitignore

+154
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,154 @@
1+
# Created by https://www.gitignore.io/api/go,vim,macos,sublimetext,intellij+iml
2+
3+
### Go ###
4+
# Binaries for programs and plugins
5+
*.exe
6+
*.dll
7+
*.so
8+
*.dylib
9+
10+
# Test binary, build with `go test -c`
11+
*.test
12+
13+
# Output of the go coverage tool, specifically when used with LiteIDE
14+
*.out
15+
16+
# Project-local glide cache, RE: https://github.com/Masterminds/glide/issues/736
17+
.glide/
18+
19+
### Intellij+iml ###
20+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm
21+
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
22+
23+
# User-specific stuff:
24+
.idea/**/workspace.xml
25+
.idea/**/tasks.xml
26+
.idea/dictionaries
27+
28+
# Sensitive or high-churn files:
29+
.idea/**/dataSources/
30+
.idea/**/dataSources.ids
31+
.idea/**/dataSources.xml
32+
.idea/**/dataSources.local.xml
33+
.idea/**/sqlDataSources.xml
34+
.idea/**/dynamic.xml
35+
.idea/**/uiDesigner.xml
36+
37+
# Gradle:
38+
.idea/**/gradle.xml
39+
.idea/**/libraries
40+
41+
# CMake
42+
cmake-build-debug/
43+
44+
# Mongo Explorer plugin:
45+
.idea/**/mongoSettings.xml
46+
47+
## File-based project format:
48+
*.iws
49+
50+
## Plugin-specific files:
51+
52+
# IntelliJ
53+
/out/
54+
55+
# mpeltonen/sbt-idea plugin
56+
.idea_modules/
57+
58+
# JIRA plugin
59+
atlassian-ide-plugin.xml
60+
61+
# Cursive Clojure plugin
62+
.idea/replstate.xml
63+
64+
# Crashlytics plugin (for Android Studio and IntelliJ)
65+
com_crashlytics_export_strings.xml
66+
crashlytics.properties
67+
crashlytics-build.properties
68+
fabric.properties
69+
70+
### Intellij+iml Patch ###
71+
# Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-249601023
72+
73+
*.iml
74+
modules.xml
75+
.idea/misc.xml
76+
*.ipr
77+
78+
### macOS ###
79+
*.DS_Store
80+
.AppleDouble
81+
.LSOverride
82+
83+
# Icon must end with two \r
84+
Icon
85+
86+
# Thumbnails
87+
._*
88+
89+
# Files that might appear in the root of a volume
90+
.DocumentRevisions-V100
91+
.fseventsd
92+
.Spotlight-V100
93+
.TemporaryItems
94+
.Trashes
95+
.VolumeIcon.icns
96+
.com.apple.timemachine.donotpresent
97+
98+
# Directories potentially created on remote AFP share
99+
.AppleDB
100+
.AppleDesktop
101+
Network Trash Folder
102+
Temporary Items
103+
.apdisk
104+
105+
### SublimeText ###
106+
# cache files for sublime text
107+
*.tmlanguage.cache
108+
*.tmPreferences.cache
109+
*.stTheme.cache
110+
111+
# workspace files are user-specific
112+
*.sublime-workspace
113+
114+
# project files should be checked into the repository, unless a significant
115+
# proportion of contributors will probably not be using SublimeText
116+
# *.sublime-project
117+
118+
# sftp configuration file
119+
sftp-config.json
120+
121+
# Package control specific files
122+
Package Control.last-run
123+
Package Control.ca-list
124+
Package Control.ca-bundle
125+
Package Control.system-ca-bundle
126+
Package Control.cache/
127+
Package Control.ca-certs/
128+
Package Control.merged-ca-bundle
129+
Package Control.user-ca-bundle
130+
oscrypto-ca-bundle.crt
131+
bh_unicode_properties.cache
132+
133+
# Sublime-github package stores a github token in this file
134+
# https://packagecontrol.io/packages/sublime-github
135+
GitHub.sublime-settings
136+
137+
### Vim ###
138+
# swap
139+
[._]*.s[a-v][a-z]
140+
[._]*.sw[a-p]
141+
[._]s[a-v][a-z]
142+
[._]sw[a-p]
143+
# session
144+
Session.vim
145+
# temporary
146+
.netrwhist
147+
*~
148+
# auto-generated tag files
149+
tags
150+
151+
# End of https://www.gitignore.io/api/go,vim,macos,sublimetext,intellij+iml
152+
153+
.idea/*
154+

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# go-fizzbuzz

fizzbuzz-01.go

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
package main
2+
3+
import "fmt"
4+
5+
var max = 100
6+
7+
func main() {
8+
9+
for i := 1; i <= max; i++ {
10+
switch {
11+
case i%15 == 0:
12+
fmt.Printf("%s\n", "FizzBuzz")
13+
case i%3 == 0:
14+
fmt.Printf("%s\n", "Fizz")
15+
case i%5 == 0:
16+
fmt.Printf("%s\n", "Buzz")
17+
default:
18+
fmt.Printf("%d\n", i)
19+
}
20+
}
21+
}

fizzbuzz-02.go

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
package main
2+
3+
func main() {
4+
5+
}

0 commit comments

Comments
 (0)