Skip to content

Commit c0bce3d

Browse files
committed
feat: initial
Signed-off-by: Maxim Levchenko <kagbe.leviy@gmail.com>
0 parents  commit c0bce3d

27 files changed

Lines changed: 1937 additions & 0 deletions

.github/workflows/ci.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main, master]
6+
pull_request:
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
test:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
- uses: actions/setup-go@v5
17+
with:
18+
go-version: '1.25.5'
19+
20+
- name: Run CI
21+
run: make ci

.github/workflows/release.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
release:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
- uses: actions/setup-go@v5
17+
with:
18+
go-version: '1.25.5'
19+
20+
- name: Run CI
21+
run: make ci
22+
23+
- name: Extract changelog
24+
run: make release-notes > release.md
25+
26+
- name: Create GitHub release
27+
uses: ncipollo/release-action@v1
28+
with:
29+
tag: ${{ github.ref_name }}
30+
name: Release ${{ github.ref_name }}
31+
bodyFile: release.md

.gitignore

Lines changed: 126 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,126 @@
1+
# File created using '.gitignore Generator' for Visual Studio Code: https://bit.ly/vscode-gig
2+
# Created by https://www.toptal.com/developers/gitignore/api/windows,visualstudiocode,go,linux,macos
3+
# Edit at https://www.toptal.com/developers/gitignore?templates=windows,visualstudiocode,go,linux,macos
4+
5+
### Go ###
6+
# If you prefer the allow list template instead of the deny list, see community template:
7+
# https://github.com/github/gitignore/blob/main/community/Golang/Go.AllowList.gitignore
8+
#
9+
# Binaries for programs and plugins
10+
*.exe
11+
*.exe~
12+
*.dll
13+
*.so
14+
*.dylib
15+
16+
# Test binary, built with `go test -c`
17+
*.test
18+
19+
# Output of the go coverage tool, specifically when used with LiteIDE
20+
*.out
21+
22+
# Dependency directories (remove the comment below to include it)
23+
# vendor/
24+
25+
# Go workspace file
26+
go.work
27+
28+
### Linux ###
29+
*~
30+
31+
# temporary files which can be created if a process still has a handle open of a deleted file
32+
.fuse_hidden*
33+
34+
# KDE directory preferences
35+
.directory
36+
37+
# Linux trash folder which might appear on any partition or disk
38+
.Trash-*
39+
40+
# .nfs files are created when an open file is removed but is still being accessed
41+
.nfs*
42+
43+
### macOS ###
44+
# General
45+
.DS_Store
46+
.AppleDouble
47+
.LSOverride
48+
49+
# Icon must end with two \r
50+
Icon
51+
52+
53+
# Thumbnails
54+
._*
55+
56+
# Files that might appear in the root of a volume
57+
.DocumentRevisions-V100
58+
.fseventsd
59+
.Spotlight-V100
60+
.TemporaryItems
61+
.Trashes
62+
.VolumeIcon.icns
63+
.com.apple.timemachine.donotpresent
64+
65+
# Directories potentially created on remote AFP share
66+
.AppleDB
67+
.AppleDesktop
68+
Network Trash Folder
69+
Temporary Items
70+
.apdisk
71+
72+
### macOS Patch ###
73+
# iCloud generated files
74+
*.icloud
75+
76+
### VisualStudioCode ###
77+
.vscode/*
78+
!.vscode/settings.json
79+
!.vscode/tasks.json
80+
!.vscode/launch.json
81+
!.vscode/extensions.json
82+
!.vscode/*.code-snippets
83+
84+
# Local History for Visual Studio Code
85+
.history/
86+
87+
# Built Visual Studio Code Extensions
88+
*.vsix
89+
90+
### VisualStudioCode Patch ###
91+
# Ignore all local history of files
92+
.history
93+
.ionide
94+
95+
### Windows ###
96+
# Windows thumbnail cache files
97+
Thumbs.db
98+
Thumbs.db:encryptable
99+
ehthumbs.db
100+
ehthumbs_vista.db
101+
102+
# Dump file
103+
*.stackdump
104+
105+
# Folder config file
106+
[Dd]esktop.ini
107+
108+
# Recycle Bin used on file shares
109+
$RECYCLE.BIN/
110+
111+
# Windows Installer files
112+
*.cab
113+
*.msi
114+
*.msix
115+
*.msm
116+
*.msp
117+
118+
# Windows shortcuts
119+
*.lnk
120+
121+
# End of https://www.toptal.com/developers/gitignore/api/windows,visualstudiocode,go,linux,macos
122+
123+
# Custom rules (everything added below won't be overriden by 'Generate .gitignore File' if you use 'Update' option)
124+
125+
bench_*.txt
126+
*.pprof

.golangci.yml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
version: "2"
2+
run:
3+
tests: false
4+
linters:
5+
enable:
6+
- modernize
7+
- prealloc
8+
# - tagalign
9+
- tagliatelle
10+
- perfsprint
11+
- asciicheck
12+
- bidichk
13+
# - gocognit # cyclop
14+
- decorder
15+
- dupl
16+
- gocritic
17+
- bodyclose
18+
- gosec
19+
- nilerr
20+
- predeclared
21+
- revive
22+
- rowserrcheck
23+
- sqlclosecheck
24+
- tparallel
25+
- unconvert
26+
- unparam
27+
- whitespace
28+
- staticcheck
29+
- zerologlint
30+
- goheader
31+
exclusions:
32+
generated: lax
33+
presets:
34+
- common-false-positives
35+
paths:
36+
- third_party$
37+
- builtin$
38+
- examples$
39+
settings:
40+
goheader:
41+
template: |-
42+
SPDX-License-Identifier: MIT
43+
Copyright (c) 2026 WoozyMasta
44+
Source: github.com/woozymasta/stringtable
45+
tagliatelle:
46+
case:
47+
rules:
48+
json: snake
49+
yaml: snake
50+
issues:
51+
max-issues-per-linter: 0
52+
max-same-issues: 0
53+
formatters:
54+
enable:
55+
- goimports
56+
exclusions:
57+
generated: lax
58+
paths:
59+
- third_party$
60+
- builtin$
61+
- examples$

CHANGELOG.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
The format is based on [Keep a Changelog][],
6+
and this project adheres to [Semantic Versioning][].
7+
8+
<!--
9+
## Unreleased
10+
11+
### Added
12+
### Changed
13+
### Removed
14+
-->
15+
16+
## [0.1.0][] - 2026-03-05
17+
18+
### Added
19+
20+
* First public release
21+
22+
[0.1.0]: https://github.com/WoozyMasta/stringtable/tree/v0.1.0
23+
24+
<!--links-->
25+
[Keep a Changelog]: https://keepachangelog.com/en/1.1.0/
26+
[Semantic Versioning]: https://semver.org/spec/v2.0.0.html

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2026 Maxim Levchenko (WoozyMasta)
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

0 commit comments

Comments
 (0)