-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c2c17f7
commit 9d8796f
Showing
4 changed files
with
220 additions
and
267 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,36 @@ | ||
package main | ||
|
||
import "github.com/sharin-sushi/0015docker/sample" | ||
import ( | ||
"github.com/gin-gonic/gin" | ||
"github.com/sharin-sushi/0015docker/sample" | ||
) | ||
|
||
// "github.com/sharin-sushi/0015docker/sample" // 消えないようにメモ | ||
|
||
func main() { | ||
// pointer.go | ||
// for x, y := range のテスト | ||
// r := gin.Default() | ||
// r.GET("/1", test1) | ||
// r.GET("/2", test2) | ||
// r.GET("/2a", test2a) | ||
// r.GET("/3", test3) | ||
// r.Run("localhost:8080") | ||
|
||
r := gin.Default() | ||
rangeTest := r.Group("/range") | ||
{ | ||
rangeTest.GET("/1", sample.Test1) | ||
rangeTest.GET("/2", sample.Test2) | ||
rangeTest.GET("/2a", sample.Test2a) | ||
rangeTest.GET("/3", sample.Test3) | ||
} | ||
// crypt.go AES化 | ||
// sample.AlterMainCrypt2() //元記事ほぼそのままのもの | ||
sample.AlterMainCrypt() //自分用に改変したもの | ||
// sample.AlterMainCrypt() //自分用に改変したもの | ||
|
||
// pointer.go | ||
// このままだとニルポエラーでpanicして落ちる | ||
// sample.AleterMainPointer() | ||
|
||
// type_json.go | ||
typeTest := r.Group("/type") | ||
{ | ||
typeTest.GET("/vt-slise", sample.AlterMainType) | ||
} | ||
r.Run("localhost:8080") | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.