1 // Copyright 2017 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
15 fmt
.Printf("No dots: %q\n", filepath
.Ext("index"))
16 fmt
.Printf("One dot: %q\n", filepath
.Ext("index.js"))
17 fmt
.Printf("Two dots: %q\n", filepath
.Ext("main.test.js"))