文章
26
标签
4
分类
4
首页
文章
归档
标签
分类
ToDo
留言板
关于
EurekaYu
EurekaYu
搜索
首页
文章
归档
标签
分类
ToDo
留言板
关于
无标题
发表于
2026-01-24
|
更新于
2026-01-24
|
浏览量:
数据链路层
文章作者:
tangerineyu
文章链接:
https://tangerineyu.github.io/2026/01/24/%E8%AE%A1%E7%AE%97%E6%9C%BA%E7%BD%91%E7%BB%9C/
版权声明:
本博客所有文章除特别声明外,均采用
CC BY-NC-SA 4.0
许可协议。转载请注明来源
EurekaYu
!
上一篇
==⚠ Switch to EXCALIDRAW VIEW in the MORE OPTIONS menu of this document. ⚠== You can decompress Drawing data with the command palette: ‘Decompress current Excalidraw file’. For more info check in plugin settings under ‘Saving’ Excalidraw Data Text...
下一篇
接口型函数
最近在写极客兔兔的GeeCache这个小项目,在里面遇到了一段不太理解的代码, 1234567891011type Getter interface { Get(key string) ([]byte, error)}// A GetterFunc implements Getter with a function.type GetterFunc func(key string) ([]byte, error)// Get implements Getter interface functionfunc (f GetterFunc) Get(key string) ([]byte, error) { return f(key)} 结合兔兔的讲解,写一篇博客 本质是实现多态 接口只有一个方法,为什么不直接使用GetterFunc作为参数传进参数? 12func GetFromSource(fn GetterFunc, key string)...
评论
tangerineyu
爱非虚妄,梦不荒唐
文章
26
标签
4
分类
4
Follow Me
公告
欢迎来到我的博客,如果有什么加载不出来Ctrl + F5 / 刷新页面也许能解决
目录
1.
数据链路层
最新文章
接口型函数
2026-01-24
无标题
2026-01-24
无标题
2026-01-24
GMP
2026-01-08
主流排序算法
2026-01-06
搜索
数据加载中