Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoSuchUser = errors.New("no such user") ErrFailed = errors.New("failed to get user") )
Functions ¶
func GetUserNameFromText ¶ added in v1.1.0
GetUserNameFromText extracts Instagram user name from "text" (usually the biography of a social media account) using regular expressions. Because of too many edge cases, this function does not guarantee the accuracy of the extracted user names. The "username" argument is returned if Instagram is mentioned but no user name is found. Empty string is returned if no user name is found.
Types ¶
Click to show internal directories.
Click to hide internal directories.