Goで関数の外にポインタを渡す
Problem I used a = &ta for appending to array variable in some function, then I expected that change effected original variable which was pass to the function. You can check the behavior in n...
Problem I used a = &ta for appending to array variable in some function, then I expected that change effected original variable which was pass to the function. You can check the behavior in n...
Problem What is defined as below: enum state: { draft: 1, enabled: 2 disabled: 3 } If you put a wrong value which no defined in enum attribute, take a error ArgumentError: 'hoge' i...
Problem Certificates validation of AWS didn’t finish with terraform. module.production_hoge_acm_default.aws_acm_certificate_validation.default[0]: Still creating... [33m20s elapsed] I check status...
Problem Do not know how to go out packet to host machine from a docker container. bash-4.4# wget http://localhost:9040 --2022-11-02 05:14:45-- http://localhost:9040/ Resolving localhost... 127.0.0...
Problem $ go run main.go go: no such tool "compile" $ go env GO111MODULE="" GOARCH="amd64" GOBIN="" GOCACHE="/Users/hoge/Library/Caches/go-build" GOENV="/Users/hoge/Library/Application Support/g...
Problem I was trying to upgrade openwrt version with new img, but my NanoPi was not working. I used OS img below: Index of /snapshots/targets/rockchip/armv8/ friendlyarm_nanopi-r4s-ext4-sysupgr...
Problem I defined model like below: type Hostname struct { ID uint `gorm:"primaryKey"` IP string `gorm:"type:string;index:ip_uq,unique;"` Hostname *string `gorm:"type:string;"` ...
Problem I forgot to be multipled by “time.Second”, when I compared the elapsed time with which I specific, such as sndT.Sub(fstT) > time.Duration(10). Which you can know how to be occured packa...
How SELECT UNIX_TIMESTAMP(time) AS “time”, … References Grafana + MySQL timezone issue - Grafana / MySQL - Grafana Labs Community Forums
Problem Although I used debug feature in VS Code following this article debugging · golang/vscode-go Wiki, I got the error as below: Failed to launch: could not launch process: can not run under R...
Problem I’d like to count up, but not working below: package main import ( "fmt" ) type obj struct { key string counter int } func goodcase(objs []obj) map[string]*obj { fmt.Println("***...
How groups.google.com/a/ml.hoge.co.jp/g/{Mailing-list or Google group name}/members If you would like to find who are in “hogehoge@ml.hoge.co.jp”, then put in like below ` https://groups.google.c...
How You do need to use no specific statement on MySQL 5.7. If you would use MySQL 5.6, you have to use the statement ALGORITHM=INPLACE, LOCK=NONE for no downtime. References MySQL :: MySQL 5.7 Ref...
How You execute below and could login correctly, you would be said Login Succeeded. aws ecr get-login-password --profile profile | docker login --username AWS --password-stdin aws_account_id.dkr.ec...
job_idはretry_onで再実行されても変わらない。 (ex. aaa4e656-9afa-4fc9-88c9-909ea8bea17e) provider_job_idは実行毎に変わる。 (ex. e341c2316979e27e757a4712) 参考 ActiveJob::Core