1 Star 0 Fork 0

exlimit/tegola

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
.github
atlas
basic
cache
ci
cmd
config
container
list
singlelist
point/list
element.go
list.go
list_test.go
mycaller.go
sentinel.go
docker
docs
draw/svg
example
geom
internal
mapbox
maths
mvt
provider
server
util/dict
vendor
.gitignore
.travis.yml
CHANGELOG.md
CODE_OF_CONDUCT.md
CONTRIBUTING.md
CONTRIBUTORS.md
LICENSE.md
README.md
bounding_box.go
geometry.go
geometry_math.go
gostring.go
isequal.go
isequal_test.go
projections.go
tile.go
tile_test.go
克隆/下载
sentinel.go 761 Bytes
一键复制 编辑 原始数据 按行查看 历史
package list
// Sentinel Provides the a very basic struct that fulfills the Elementer interface. It is meant to be embedded into other
// structs that want to fulfill the interface.
type Sentinel struct {
next Elementer
list *List
}
// Returns the next Element in the list.
func (s *Sentinel) Next() Elementer {
if s == nil {
return nil
}
return s.next
}
// Sets the next element in the list.
func (s *Sentinel) SetNext(e Elementer) Elementer {
if s == nil {
return nil
}
n := s.next
s.next = e
return n
}
// Returns the list.
func (s *Sentinel) List() *List {
if s == nil {
return nil
}
return s.list
}
// Set's the list.
func (s *Sentinel) SetList(l *List) *List {
if s == nil {
return nil
}
ol := s.list
s.list = l
return ol
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/exlimit/tegola.git
git@gitee.com:exlimit/tegola.git
exlimit
tegola
tegola
v0.6.4

搜索帮助