Skip to content

Commit 6712632

Browse files
committed
feat: finished
1 parent 75cbfcf commit 6712632

File tree

3 files changed

+254
-0
lines changed

3 files changed

+254
-0
lines changed

.gitignore

Lines changed: 174 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,174 @@
1+
/.idea/
2+
3+
# Created by https://www.gitignore.io/api/go,intellij,visualstudiocode,vim,macos
4+
# Edit at https://www.gitignore.io/?templates=go,intellij,visualstudiocode,vim,macos
5+
6+
### Go ###
7+
# Binaries for programs and plugins
8+
*.exe
9+
*.exe~
10+
*.dll
11+
*.so
12+
*.dylib
13+
14+
# Test binary, built with `go test -c`
15+
*.test
16+
17+
# Output of the go coverage tool, specifically when used with LiteIDE
18+
*.out
19+
20+
# Dependency directories (remove the comment below to include it)
21+
# vendor/
22+
23+
### Go Patch ###
24+
/vendor/
25+
/Godeps/
26+
27+
### Intellij ###
28+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm
29+
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
30+
31+
# User-specific stuff
32+
.idea/**/workspace.xml
33+
.idea/**/tasks.xml
34+
.idea/**/usage.statistics.xml
35+
.idea/**/dictionaries
36+
.idea/**/shelf
37+
38+
# Generated files
39+
.idea/**/contentModel.xml
40+
41+
# Sensitive or high-churn files
42+
.idea/**/dataSources/
43+
.idea/**/dataSources.ids
44+
.idea/**/dataSources.local.xml
45+
.idea/**/sqlDataSources.xml
46+
.idea/**/dynamic.xml
47+
.idea/**/uiDesigner.xml
48+
.idea/**/dbnavigator.xml
49+
50+
# Gradle
51+
.idea/**/gradle.xml
52+
.idea/**/libraries
53+
54+
# Gradle and Maven with auto-import
55+
# When using Gradle or Maven with auto-import, you should exclude module files,
56+
# since they will be recreated, and may cause churn. Uncomment if using
57+
# auto-import.
58+
# .idea/modules.xml
59+
# .idea/*.iml
60+
# .idea/modules
61+
# *.iml
62+
# *.ipr
63+
64+
# CMake
65+
cmake-build-*/
66+
67+
# Mongo Explorer plugin
68+
.idea/**/mongoSettings.xml
69+
70+
# File-based project format
71+
*.iws
72+
73+
# IntelliJ
74+
out/
75+
76+
# mpeltonen/sbt-idea plugin
77+
.idea_modules/
78+
79+
# JIRA plugin
80+
atlassian-ide-plugin.xml
81+
82+
# Cursive Clojure plugin
83+
.idea/replstate.xml
84+
85+
# Crashlytics plugin (for Android Studio and IntelliJ)
86+
com_crashlytics_export_strings.xml
87+
crashlytics.properties
88+
crashlytics-build.properties
89+
fabric.properties
90+
91+
# Editor-based Rest Client
92+
.idea/httpRequests
93+
94+
# Android studio 3.1+ serialized cache file
95+
.idea/caches/build_file_checksums.ser
96+
97+
### Intellij Patch ###
98+
# Comment Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-215987721
99+
100+
# *.iml
101+
# modules.xml
102+
# .idea/misc.xml
103+
# *.ipr
104+
105+
# Sonarlint plugin
106+
.idea/**/sonarlint/
107+
108+
# SonarQube Plugin
109+
.idea/**/sonarIssues.xml
110+
111+
# Markdown Navigator plugin
112+
.idea/**/markdown-navigator.xml
113+
.idea/**/markdown-navigator/
114+
115+
### macOS ###
116+
# General
117+
.DS_Store
118+
.AppleDouble
119+
.LSOverride
120+
121+
# Icon must end with two \r
122+
Icon
123+
124+
# Thumbnails
125+
._*
126+
127+
# Files that might appear in the root of a volume
128+
.DocumentRevisions-V100
129+
.fseventsd
130+
.Spotlight-V100
131+
.TemporaryItems
132+
.Trashes
133+
.VolumeIcon.icns
134+
.com.apple.timemachine.donotpresent
135+
136+
# Directories potentially created on remote AFP share
137+
.AppleDB
138+
.AppleDesktop
139+
Network Trash Folder
140+
Temporary Items
141+
.apdisk
142+
143+
### Vim ###
144+
# Swap
145+
[._]*.s[a-v][a-z]
146+
[._]*.sw[a-p]
147+
[._]s[a-rt-v][a-z]
148+
[._]ss[a-gi-z]
149+
[._]sw[a-p]
150+
151+
# Session
152+
Session.vim
153+
Sessionx.vim
154+
155+
# Temporary
156+
.netrwhist
157+
*~
158+
# Auto-generated tag files
159+
tags
160+
# Persistent undo
161+
[._]*.un~
162+
163+
### VisualStudioCode ###
164+
.vscode/*
165+
!.vscode/settings.json
166+
!.vscode/tasks.json
167+
!.vscode/launch.json
168+
!.vscode/extensions.json
169+
170+
### VisualStudioCode Patch ###
171+
# Ignore all local history of files
172+
.history
173+
174+
# End of https://www.gitignore.io/api/go,intellij,visualstudiocode,vim,macos

go.mod

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module github.com/gochore/pt
2+
3+
go 1.13

pt.go

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
package pt
2+
3+
func Bool(v bool) *bool {
4+
return &v
5+
}
6+
7+
func Uint8(v uint8) *uint8 {
8+
return &v
9+
}
10+
11+
func Uint16(v uint16) *uint16 {
12+
return &v
13+
}
14+
15+
func Uint32(v uint32) *uint32 {
16+
return &v
17+
}
18+
19+
func Uint64(v uint64) *uint64 {
20+
return &v
21+
}
22+
23+
func Int8(v int8) *int8 {
24+
return &v
25+
}
26+
27+
func Int16(v int16) *int16 {
28+
return &v
29+
}
30+
31+
func Int32(v int32) *int32 {
32+
return &v
33+
}
34+
35+
func Int64(v int64) *int64 {
36+
return &v
37+
}
38+
39+
func Float32(v float32) *float32 {
40+
return &v
41+
}
42+
43+
func Float64(v float64) *float64 {
44+
return &v
45+
}
46+
47+
func Complex64(v complex64) *complex64 {
48+
return &v
49+
}
50+
51+
func Complex128(v complex128) *complex128 {
52+
return &v
53+
}
54+
55+
func String(v string) *string {
56+
return &v
57+
}
58+
59+
func Int(v int) *int {
60+
return &v
61+
}
62+
63+
func Uint(v uint) *uint {
64+
return &v
65+
}
66+
67+
func Uintptr(v uintptr) *uintptr {
68+
return &v
69+
}
70+
71+
func Byte(v byte) *byte {
72+
return &v
73+
}
74+
75+
func Rune(v rune) *rune {
76+
return &v
77+
}

0 commit comments

Comments
 (0)