utils

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 3, 2022 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Content2ArweavePage

func Content2ArweavePage(srcContent string) (*types.ArweavePage, error)

TODO: Can't support sub page, image, database now.

Content2ArweavePage converting content from arweave to ArweavePage struct

func ConvertImageBlock

func ConvertImageBlock(blockDTO *notion.BlockDTO) notion.Block

ConvertImageBlock convert image block to richtext link.

func GetTagValue

func GetTagValue(name string, tags []arTypes.Tag) string

func IsSupported

func IsSupported(dto *notion.BlockDTO) bool

func LogResp_Debug

func LogResp_Debug(resp *resty.Response)

func LogResp_Error

func LogResp_Error(resp *resty.Response)

func MakeImageTags

func MakeImageTags(sign string) []arTypes.Tag

func MakeTags

func MakeTags(typ, sign, content string) []arTypes.Tag

func MergeChildBlocks

func MergeChildBlocks(content1, content2 string) (merged string, err error)

MergeChildBlocks content format is notion.BlockChildrenResponse

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL