Skip to content

增强Protocol类型的String方法以支持字符串表示,更新Responser以打印协议类型信息,并在Send方法中添加数据包大小限制警告 #9

增强Protocol类型的String方法以支持字符串表示,更新Responser以打印协议类型信息,并在Send方法中添加数据包大小限制警告

增强Protocol类型的String方法以支持字符串表示,更新Responser以打印协议类型信息,并在Send方法中添加数据包大小限制警告 #9

Workflow file for this run

# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
name: build_test
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.23'
- name: Get dependencies
run: |
sudo apt install -y libpcap-dev
go get -v
- name: Build
run: go build -v ./...
- name: Test
run: go test -v ./...