本文整理汇总了Golang中dna/item.Item函数的典型用法代码示例。如果您正苦于以下问题:Golang Item函数的具体用法?Golang Item怎么用?Golang Item使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了Item函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Golang代码示例。
示例1: New
// New implements item.Item interface
// Returns new item.Item interface
func (movie *Movie) New() item.Item {
return item.Item(NewMovie())
}
示例2: New
// New implements item.Item interface
// Returns new item.Item interface
func (tv *TV) New() item.Item {
return item.Item(NewTV())
}
示例3: New
// New implements item.Item interface
// Returns new item.Item interface
func (lyric *Lyric) New() item.Item {
return item.Item(NewLyric())
}
示例4: New
// New implements item.Item interface
// Returns new item.Item interface
func (artist *Artist) New() item.Item {
return item.Item(NewArtist())
}
示例5: New
// New implements item.Item interface
// Returns new item.Item interface
func (apiSong *APIFullSong) New() item.Item {
return item.Item(NewAPIFullSong())
}
示例6: New
// New implements item.Item interface
// Returns new item.Item interface
func (video *Video) New() item.Item {
return item.Item(NewVideo())
}
示例7: New
// New implements item.Item interface
// Returns new item.Item interface
func (sv *SongVideo) New() item.Item {
return item.Item(NewSongVideo())
}
示例8: New
// New implements item.Item interface
// Returns new item.Item interface
func (song *Song) New() item.Item {
return item.Item(NewSong())
}
示例9: New
// New implements item.Item interface
// Returns new item.Item interface
func (eu *EpUpdater) New() item.Item {
return item.Item(NewEpUpdater())
}
示例10: New
// New implements item.Item interface
// Returns new item.Item interface
func (soca *SongCategory) New() item.Item {
return item.Item(NewSongCategory())
}
示例11: New
// New implements item.Item interface
// Returns new item.Item interface
func (users *Users) New() item.Item {
return item.Item(NewUsers())
}
示例12: New
func (subject *Subject) New() item.Item {
return item.Item(NewSubject(0, ""))
}
示例13: New
// New implements item.Item interface
// Returns new item.Item interface
func (album *Album) New() item.Item {
return item.Item(NewAlbum())
}
示例14: New
// New implements item.Item interface
// Returns new item.Item interface
func (sf *APISongFreaksAlbum) New() item.Item {
return item.Item(NewAPISongFreaksAlbum())
}
示例15: New
// New returns warpper of item.Item interface
func (svu *SongVideoUpdater) New() item.Item {
return item.Item(NewSongVideoUpdater())
}