nocomment

package
v1.13.11 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2020 License: GPL-2.0, GPL-2.0-or-later Imports: 1 Imported by: 0

README

Package nocomment strips a string trailing '#' prefaced comments along with its leading whitespace.


© 2015-2016 Platina Systems, Inc. All rights reserved. Use of this source code is governed by this BSD-style LICENSE.

Documentation

Overview

Package nocomment strips a string trailing '#' prefaced comments along with its leading whitespace. For example,

nocomment.New("hello # world") returns "hello"
nocomment.New("# hello world") returns ""
nocomment.New("hello#world") returns "hello#world"
nocomment.New("hello #world") returns "hello"

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(s string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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