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 biz | |
import ( | |
"context" | |
"io" | |
"reflect" | |
"testing" | |
"time" | |
"github.com/go-kratos/kratos/v2/log" |
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 ( | |
"context" | |
"log" | |
"github.com/go-kratos/examples/helloworld/helloworld" | |
"github.com/go-kratos/kratos/v2/transport/grpc" | |
"github.com/go-kratos/kratos/v2/transport/http" | |
) |
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 ( | |
"context" | |
"log" | |
"github.com/go-kratos/kratos/v2" | |
"github.com/go-kratos/kratos/v2/transport/http" | |
) |
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 rpcclient | |
import ( | |
"context" | |
"encoding/json" | |
"fmt" | |
"testing" | |
"github.com/OpenIMSDK/protocol/constant" | |
"github.com/OpenIMSDK/protocol/group" |
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
#include <queue> // 包括队列头文件 | |
#include <vector> | |
#include <iostream> | |
using namespace std; // 使用标准命名空间 | |
class Solution | |
{ | |
public: | |
vector<vector<int>> grid; |
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
<?xml version="1.0" encoding="utf-8"?> | |
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:tools="http://schemas.android.com/tools"> | |
<uses-permission android:name="android.permission.INTERNET" /> | |
<!-- 需要添加以下权限 --> | |
<uses-feature android:name="android.hardware.camera" /> | |
<uses-feature android:name="android.hardware.camera.autofocus" /> | |
<uses-permission android:name="android.permission.CAMERA" /> |
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 server | |
import ( | |
v1 "code_msg_data/api/helloworld/v1" | |
"code_msg_data/internal/conf" | |
"code_msg_data/internal/service" | |
sj "encoding/json" | |
nt "net/http" | |
"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
func NewTask(b *rod.Browser, user User) *Task { | |
page := b.Page("https://www.your_site.com/") | |
return &Task{page, user} | |
} | |
type Task struct { | |
page *rod.Page | |
user User | |
isLoggedIn atomic.Bool | |
} |
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
services: | |
# consul 注册中心、配置中心 | |
consul: | |
image: hashicorp/consul:1.16.1 | |
ports: | |
- 8500:8500 | |
command: | |
- agent | |
- -server | |
- -ui |
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
import 'package:http/http.dart' as http; | |
class MyClient with http.BaseClient { | |
final _client = http.Client(); | |
final Uri baseUrl; | |
MyClient(this.baseUrl); | |
@override |
NewerOlder