This file contains hidden or 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
| package main | |
| import ( | |
| "fmt" | |
| "log" | |
| "net/http" | |
| ) | |
| func main() { | |
| http.Handle("/api/v1", businessLogic("12345")) |
This file contains hidden or 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
| package main | |
| import ( | |
| "fmt" | |
| "log" | |
| "math/rand" | |
| "net/http" | |
| ) | |
| func chain(chain ...http.HandlerFunc) http.Handler { |
This file contains hidden or 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
| func chain(chain ...http.HandlerFunc) http.Handler { | |
| return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { | |
| for _, h := range chain { | |
| h(w, r) | |
| } | |
| }) | |
| } | |
| func main() { | |
| http.Handle("/api/v1", chain(logger, businessLogic("99999", runTimeFunc))) |
This file contains hidden or 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
| func logger(w http.ResponseWriter, r *http.Request) { | |
| log.Printf("Request %v", r.URL.Path) | |
| } |
This file contains hidden or 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
| package main | |
| import ( | |
| "fmt" | |
| "log" | |
| "math/rand" | |
| "net/http" | |
| ) | |
| func main() { |
This file contains hidden or 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
| using UniRx; | |
| using UniRx.Triggers; | |
| using UnityEngine; | |
| public class FreeCameraControllerRx : MonoBehaviour | |
| { | |
| [Header("Speed Settings")] | |
| public float speed = 10f; | |
| public float fastSpeed = 80f; | |
| public float rollSpeed = 80f; |
This file contains hidden or 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
| using UnityEngine; | |
| public class FreeCameraController : MonoBehaviour | |
| { | |
| [Header("Speed Settings")] | |
| public float speed = 10f; | |
| public float fastSpeed = 80f; | |
| public float rollSpeed = 80f; | |
| public float fastRollSpeed = 150f; | |
| public Vector2 mouseSensitivity = new Vector2(100f, 100f); |
This file contains hidden or 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
| /* | |
| * Sample | |
| */ | |
| class SampleClass { | |
| protected $test = false; | |
| function __construct() { | |
| $this->test = true; | |
| } | |
NewerOlder