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
| drop table if exists `salaries` ; | |
| drop table if exists `dept_manager` ; | |
| CREATE TABLE `salaries` ( | |
| `emp_no` int(11) NOT NULL, | |
| `salary` int(11) NOT NULL, | |
| `from_date` date NOT NULL, | |
| `to_date` date NOT NULL, | |
| PRIMARY KEY (`emp_no`,`from_date`)); | |
| CREATE TABLE `dept_manager` ( |
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 ( | |
| "log" | |
| "runtime" | |
| "github.com/go-gl/gl/v3.3-core/gl" | |
| "github.com/go-gl/glfw/v3.2/glfw" | |
| ) |
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" | |
| "runtime" | |
| "strings" | |
| "github.com/go-gl/gl/v3.3-core/gl" | |
| "github.com/go-gl/glfw/v3.2/glfw" |
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" | |
| "github.com/go-gl/gl/v3.3-core/gl" | |
| "github.com/go-gl/glfw/v3.2/glfw" | |
| "log" | |
| "math" | |
| "runtime" | |
| "strings" |
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
| version: "3.6" | |
| services: | |
| node1: | |
| image: quay.io/coreos/etcd:v3.4.0 | |
| volumes: | |
| - node1-data:/etcd-data | |
| expose: | |
| - 2379 | |
| - 2380 |
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" | |
| "sync" | |
| "sync/atomic" | |
| "testing" | |
| ) | |
| type mapInterface interface { |
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 logging | |
| import ( | |
| "fmt" | |
| "log" | |
| "runtime" | |
| ) | |
| const ( | |
| DEBUG = "[DEBUG] " |
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 client | |
| import ( | |
| "context" | |
| "fmt" | |
| "google.golang.org/grpc" | |
| "google.golang.org/grpc/credentials/insecure" | |
| "io" | |
| "log" | |
| "stgrpc/hello_proto" |
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 cron | |
| import ( | |
| "context" | |
| "fmt" | |
| "github.com/go-kratos/kratos/v2/log" | |
| "github.com/robfig/cron/v3" | |
| "go.opentelemetry.io/otel/attribute" | |
| "go.opentelemetry.io/otel/trace" |