Laravel,PHP

Thumbnail of post image 026
変数にnullを許容する public ?$user_name; constructに引数にnullを許容する class User { public ?string $user_name; public function __construct( public ?string ...

hosts

Thumbnail of post image 003
今回はThis XML file does not appear to have any style information associated with it. The document tree is shown below.のS3の権限へのエラー対応の紹介です。 This ...

Go

Thumbnail of post image 178
今回はrangeとは?Golangeでfor文の書き方紹介の紹介です。 forの構文 Go言語(Golang)でのforループは、繰り返し処理を行うための唯一のループ構文で、Goの簡潔な構文とシンプルな制御構造の一つです。forループは他の言語のwhileやdo-whileループ ...

Go

Thumbnail of post image 016
今回はGo言語のEchoを使ったAPIの説明についての紹介です。 Echoとはとは? Go の Web フレームワーク Echo は、シンプルで高速な API 開発を可能にするフレームワークです。 小限のメモリ消費で、高速な処理が可能 RESTful API に適した直感的なルー ...

Go

Thumbnail of post image 146
今回は「failed to solve: process "/bin/sh -c go mod download" did not complete successfully: exit code: 1」の対応方法の紹介です。 failed to solve: process " ...

Go

Thumbnail of post image 132
今回はGo言語を使ってのLogファイルの作成方法についての紹介です。 全体コード まずは全体のコードの共有です package logger import ( "fmt" "log" "os" "time ...

Go

Thumbnail of post image 095
今回はGo言語特有の書き方の紹介です。Goと他の言語で書き方が違うことがあるので、他の言語もこれからGoを学ぶ方も覚えておきましょう。 変数宣言 Goでは、短縮記法の「 := 」がよく使われます。 name := "Kami" age := 20 := と _ ...

Go

Thumbnail of post image 097
今回は「Goの環境構築でインストールからHelloWorldまで!」の紹介です。 Goのinstall homebrewでインストール Macを使ってる方はbrewでのインストールがおすすめです。 brew install go homebrewのインストールがまだな方はさきにイ ...

読書

Thumbnail of post image 102
今回は「世界の一流は「休日」に何をしているのか」の個人的にまとめた紹介です。 あくまでも個人的にまとめたいと思ったポイントなので、気になった方は是非、本を取って読んでみてください。 単行本 リンク Kindle(電子書籍) リンク 世界のエグゼクティブは「休む」ために仕事をしてい ...

Go

Thumbnail of post image 104
今回はGo言語の学習です。現場では必ず使うenvファイルの読み込み方法です。 envの読み込み initまたはmainでenvを読み込みます。 「.envファイル」から環境変数を読み込んで、実行中のプロセスの環境変数に設定します。 「.envファイル」をプロジェクトのルートに置き ...