Add air config

This commit is contained in:
2024-07-30 22:02:00 +02:00
parent e6199da5d6
commit 48d28def47
3 changed files with 53 additions and 0 deletions

1
.gitignore vendored
View File

@@ -1 +1,2 @@
jstester/node_modules jstester/node_modules
encoding/tmp

51
encoding/.air.toml Normal file
View File

@@ -0,0 +1,51 @@
root = "."
testdata_dir = "testdata"
tmp_dir = "tmp"
[build]
args_bin = []
bin = "tmp\\main.exe"
cmd = "go test ."
delay = 1000
exclude_dir = ["assets", "tmp", "vendor", "testdata"]
exclude_file = []
exclude_regex = []
exclude_unchanged = false
follow_symlink = false
full_bin = ""
include_dir = []
include_ext = ["go", "tpl", "tmpl", "html"]
include_file = []
kill_delay = "0s"
log = "build-errors.log"
poll = false
poll_interval = 0
post_cmd = []
pre_cmd = []
rerun = false
rerun_delay = 100
send_interrupt = false
stop_on_error = false
[color]
app = ""
build = "yellow"
main = "magenta"
runner = "green"
watcher = "cyan"
[log]
main_only = false
time = false
[misc]
clean_on_exit = true
[proxy]
app_port = 0
enabled = false
proxy_port = 0
[screen]
clear_on_rebuild = true
keep_scroll = true

View File

@@ -78,6 +78,7 @@ func (p *SUBMIT_SM) Encode(buf *bytes.Buffer) error {
// UCS2 should also be fairly easy, use uint16 or something // UCS2 should also be fairly easy, use uint16 or something
// GSM7 will not be easy // GSM7 will not be easy
// See https://www.codeproject.com/Tips/470755/Encoding-Decoding-7-bit-User-Data-for-SMS-PDU-PDU // See https://www.codeproject.com/Tips/470755/Encoding-Decoding-7-bit-User-Data-for-SMS-PDU-PDU
// Another great site: https://doubleblak.com/blogPost.php?k=7bitpdu
asciiEncoder := ascii85.NewEncoder(buf) asciiEncoder := ascii85.NewEncoder(buf)
// TODO: Implement encodings bsed on p.data_coding // TODO: Implement encodings bsed on p.data_coding
messageEncoder := gsm7.NewEncoder() messageEncoder := gsm7.NewEncoder()